Class ValueArray

  • All Implemented Interfaces:
    Value<java.util.List<Value<?>>>

    final class ValueArray
    extends java.lang.Object
    implements Value<java.util.List<Value<?>>>
    • Field Detail

      • value

        private final java.util.List<Value<?>> value
    • Constructor Detail

      • ValueArray

        private ValueArray​(java.util.List<Value<?>> value)
    • Method Detail

      • create

        static Value<java.util.List<Value<?>>> create​(Value<?>... value)
      • create

        static Value<java.util.List<Value<?>>> create​(java.util.List<Value<?>> value)
      • getType

        public ValueType getType()
        Description copied from interface: Value
        Returns the type of this Value. Useful for building switch statements.
        Specified by:
        getType in interface Value<java.util.List<Value<?>>>
      • asString

        public java.lang.String asString()
        Description copied from interface: Value
        Return a string encoding of this Value. This is intended to be a fallback serialized representation in case there is no suitable encoding that can utilize Value.getType() / Value.getValue() to serialize specific types.

        WARNING: No guarantees are made about the encoding of this string response. It MAY change in a future minor release. If you need a reliable string encoding, write your own serializer.

        Specified by:
        asString in interface Value<java.util.List<Value<?>>>
      • toString

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

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

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