Class BuiltDataValue<T>
- java.lang.Object
-
- com.djrapitops.plan.extension.implementation.builder.BuiltDataValue<T>
-
- All Implemented Interfaces:
DataValue<T>
- Direct Known Subclasses:
BooleanDataValue
,DoubleDataValue
,GroupsDataValue
,NumberDataValue
,StringDataValue
,TableDataValue
public abstract class BuiltDataValue<T> extends java.lang.Object implements DataValue<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BuiltDataValue(java.util.function.Supplier<T> supplier, ProviderInformation information)
protected
BuiltDataValue(T value, ProviderInformation information)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
ProviderInformation
getInformation()
<M> M
getInformation(java.lang.Class<M> ofType)
T
getValue()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.djrapitops.plan.extension.builder.DataValue
getMetadata
-
-
-
-
Constructor Detail
-
BuiltDataValue
protected BuiltDataValue(T value, ProviderInformation information)
-
BuiltDataValue
protected BuiltDataValue(java.util.function.Supplier<T> supplier, ProviderInformation information)
-
-
Method Detail
-
getInformation
public ProviderInformation getInformation()
-
getInformation
public <M> M getInformation(java.lang.Class<M> ofType)
- Specified by:
getInformation
in interfaceDataValue<T>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-