Class ValueType

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  ValueType.FieldReceiver
      An object that receives fields (names and current values) for processing.
      private static class  ValueType.ReceiverIntoHashCode
      A receiver that uses each received name and value to calculate a hash code.
      private static class  ValueType.ReceiverIntoList
      A receiver that adds all received field names and values into a list in order.
      private static class  ValueType.ReceiverIntoStringBuilder
      A receiver that puts each name and value into a StringBuilder that generates a human- readable representation of the value.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueType()  
    • Constructor Detail

      • ValueType

        public ValueType()
    • Method Detail

      • addFields

        protected abstract void addFields​(ValueType.FieldReceiver fields)
        Implement this method to report the name and value of each field.
      • equals

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object