Class Hexadectet


  • public final class Hexadectet
    extends java.lang.Object
    An integer in the range 0 to FFFF (0 to 65535 in decimal). Immutable and thread safe.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Hexadectet ZERO
      A Hexadectet representing 0.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)  
      int hashCode()  
      static Hexadectet hexadectet​(int hexadectet)
      Factory method for creating Hexadectets.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ZERO

        public static final Hexadectet ZERO
        A Hexadectet representing 0.
    • Method Detail

      • hexadectet

        public static Hexadectet hexadectet​(int hexadectet)
        Factory method for creating Hexadectets.
        Parameters:
        hexadectet - an int in the range 0 to FFFF (0 to 65535 in decimal).
        Returns:
        a Hexadectet representing the given int.
        Throws:
        java.lang.IllegalArgumentException - if the given int is outside the range 0 to FFFF.
      • toString

        public java.lang.String toString()
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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