Class InetHostMatcher.AddressMask

  • Enclosing class:
    InetHostMatcher

    protected static class InetHostMatcher.AddressMask
    extends java.lang.Object
    The ip addresses that are considered legal.
    • Constructor Summary

      Constructors 
      Constructor Description
      AddressMask​(java.net.InetAddress address)
      Guess the mask in function of the address: /8 for IPv4 loopback and full match for the rest.
      AddressMask​(java.net.InetAddress ip, java.net.InetAddress mask)
      IP and mask are given.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AddressMask

        public AddressMask​(java.net.InetAddress ip,
                           java.net.InetAddress mask)
        IP and mask are given.
        Parameters:
        ip - The IP address
        mask - A null mask means match all.
      • AddressMask

        public AddressMask​(java.net.InetAddress address)
        Guess the mask in function of the address: /8 for IPv4 loopback and full match for the rest.
        Parameters:
        address - The IP address
    • Method Detail

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public final boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object