- java.lang.Object
-
- org.praxislive.core.Value
-
- org.praxislive.core.types.PReference
-
public final class PReference extends Value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.core.Value
Value.Type<T extends Value>
-
-
Field Summary
Fields Modifier and Type Field Description static StringREFERENCE_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Optional<T>as(Class<T> cls)booleanequals(Object obj)Values must override the default equals method.booleanequivalent(Value arg)static Optional<PReference>from(Value arg)inthashCode()Values must override the default hashcode method.static ArgumentInfoinfo()static ArgumentInfoinfo(Class<?> clas)booleanisEmpty()Check whether this Value is an empty value and has a zero length string representation.static PReferenceof(Object obj)StringtoString()Values must override the default method to return a string representation that is immutable.
-
-
-
Field Detail
-
REFERENCE_TYPE
public static final String REFERENCE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public String toString()
Description copied from class:ValueValues must override the default method to return a string representation that is immutable.
-
hashCode
public int hashCode()
Description copied from class:ValueValues must override the default hashcode method.
-
equals
public boolean equals(Object obj)
Description copied from class:ValueValues must override the default equals method. This method should only returntrueif the supplied Object is of the same type as the implementing Value. Values of an unknown type should be coerced before calling this method. This method does not have to guarantee thatthis.equals(that) == this.toString().equals(that.toString())
-
equivalent
public boolean equivalent(Value arg)
- Overrides:
equivalentin classValue
-
isEmpty
public boolean isEmpty()
Description copied from class:ValueCheck whether this Value is an empty value and has a zero length string representation. Subclasses may wish to override this for efficiency if the String representation is lazily created.
-
of
public static PReference of(Object obj)
-
from
public static Optional<PReference> from(Value arg)
-
info
public static ArgumentInfo info()
-
info
public static ArgumentInfo info(Class<?> clas)
-
-