Class InetAddr

  • Direct Known Subclasses:
    CidrAddr

    public class InetAddr
    extends Object
    • Field Detail

      • address

        protected byte[] address
      • maskBits

        protected short maskBits
    • Method Detail

      • getAddress

        public byte[] getAddress()
      • setAddress

        public void setAddress​(byte[] address)
      • getMaskAddress

        public byte[] getMaskAddress()
      • getMaskBits

        public int getMaskBits()
      • setMaskBits

        public void setMaskBits​(short maskBits)
      • parseInetAddr

        public static InetAddr parseInetAddr​(String inetAddr)
      • parseInetAddr

        public static InetAddr parseInetAddr​(String inetAddr,
                                             boolean allowShorthandNotation)
      • parseN

        protected static Object[] parseN​(String inetAddr,
                                         boolean allowShortNotation)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object