Class ExtDataBuilder.ClassValuePair
- java.lang.Object
-
- com.djrapitops.plan.extension.implementation.builder.ExtDataBuilder.ClassValuePair
-
- All Implemented Interfaces:
java.lang.Comparable<ExtDataBuilder.ClassValuePair>
- Enclosing class:
- ExtDataBuilder
public static final class ExtDataBuilder.ClassValuePair extends java.lang.Object implements java.lang.Comparable<ExtDataBuilder.ClassValuePair>
-
-
Constructor Summary
Constructors Constructor Description ClassValuePair(java.lang.Class<T> type, DataValue<T> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ExtDataBuilder.ClassValuePair that)
boolean
equals(java.lang.Object o)
<T> java.util.Optional<DataValue<T>>
getValue(java.lang.Class<T> ofType)
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ClassValuePair
public ClassValuePair(java.lang.Class<T> type, DataValue<T> value)
-
-
Method Detail
-
getValue
public <T> java.util.Optional<DataValue<T>> getValue(java.lang.Class<T> ofType)
-
compareTo
public int compareTo(ExtDataBuilder.ClassValuePair that)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ExtDataBuilder.ClassValuePair>
-
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
-
-