Class ExtensionTabData
- java.lang.Object
-
- com.djrapitops.plan.extension.implementation.results.ExtensionTabData
-
- All Implemented Interfaces:
java.lang.Comparable<ExtensionTabData>
public class ExtensionTabData extends java.lang.Object implements java.lang.Comparable<ExtensionTabData>
Represents data on an extension tab.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtensionTabData.Builder
-
Constructor Summary
Constructors Constructor Description ExtensionTabData(TabInformation tabInformation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
combine(ExtensionTabData other)
int
compareTo(ExtensionTabData other)
boolean
equals(java.lang.Object o)
java.util.Optional<ExtensionBooleanData>
getBoolean(java.lang.String providerName)
java.util.List<ExtensionDescription>
getDescriptions()
Get all descriptions for data in this tab.java.util.Optional<ExtensionDoubleData>
getDouble(java.lang.String providerName)
java.util.Optional<ExtensionNumberData>
getNumber(java.lang.String providerName)
java.util.Optional<ExtensionDoubleData>
getPercentage(java.lang.String providerName)
java.util.Optional<ExtensionStringData>
getString(java.lang.String providerName)
TabInformation
getTabInformation()
java.util.List<ExtensionTableData>
getTableData()
java.util.List<java.lang.String>
getValueOrder()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ExtensionTabData
public ExtensionTabData(TabInformation tabInformation)
-
-
Method Detail
-
getTabInformation
public TabInformation getTabInformation()
-
getValueOrder
public java.util.List<java.lang.String> getValueOrder()
-
getBoolean
public java.util.Optional<ExtensionBooleanData> getBoolean(java.lang.String providerName)
-
getDouble
public java.util.Optional<ExtensionDoubleData> getDouble(java.lang.String providerName)
-
getPercentage
public java.util.Optional<ExtensionDoubleData> getPercentage(java.lang.String providerName)
-
getNumber
public java.util.Optional<ExtensionNumberData> getNumber(java.lang.String providerName)
-
getString
public java.util.Optional<ExtensionStringData> getString(java.lang.String providerName)
-
getTableData
public java.util.List<ExtensionTableData> getTableData()
-
getDescriptions
public java.util.List<ExtensionDescription> getDescriptions()
Get all descriptions for data in this tab.Only available after the Tab has been built.
- Returns:
- List of
ExtensionDescription
s.
-
compareTo
public int compareTo(ExtensionTabData other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ExtensionTabData>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
combine
public void combine(ExtensionTabData other)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-