Class ExtDataBuilder
java.lang.Object
com.djrapitops.plan.extension.implementation.builder.ExtDataBuilder
- All Implemented Interfaces:
ExtensionDataBuilder
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAll
(ExtensionDataBuilder builder) Adds all values and tables in another builder to this builder.Add a value.Compared to the other addValue method, this method allows you to useNotReadyException
when building your data.invalidateValue
(String text) Invalidate a value similar toInvalidateMethod
annotation, but with the text given toExtensionDataBuilder.valueBuilder(String)
.valueBuilder
(String text) Creates a newValueBuilder
in order to use addValue methods.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.extension.builder.ExtensionDataBuilder
addTable, addTable
-
Constructor Details
-
ExtDataBuilder
-
-
Method Details
-
valueBuilder
Description copied from interface:ExtensionDataBuilder
Creates a newValueBuilder
in order to use addValue methods.Using same text for two values can be problematic as the text is used for id in the database.
If you need to use
InvalidateMethod
with built values, lowercase 'text' and remove all whitespace. ExamplevalueBuilder("Times Jumped"); @InvalidateMethod("timesjumped")
- Specified by:
valueBuilder
in interfaceExtensionDataBuilder
- Parameters:
text
- Text that should be displayed next to the value.- Returns:
- a new value builder.
-
addValue
Description copied from interface:ExtensionDataBuilder
Add a value.- Specified by:
addValue
in interfaceExtensionDataBuilder
- Type Parameters:
T
- Type of the data.- Parameters:
ofType
- Class for type of the data, matches what Provider annotations want.dataValue
- UseValueBuilder
to create one.- Returns:
- This builder.
-
addValue
Description copied from interface:ExtensionDataBuilder
Compared to the other addValue method, this method allows you to useNotReadyException
when building your data.- Specified by:
addValue
in interfaceExtensionDataBuilder
- Type Parameters:
T
- Type of the data.- Parameters:
ofType
- Class for type of the data, matches what Provider annotations want.dataValue
- UseValueBuilder
to create one.- Returns:
- This builder.
-
invalidateValue
Description copied from interface:ExtensionDataBuilder
Invalidate a value similar toInvalidateMethod
annotation, but with the text given toExtensionDataBuilder.valueBuilder(String)
.- Specified by:
invalidateValue
in interfaceExtensionDataBuilder
- Parameters:
text
- The same text that was given to the value builder.- Returns:
- This builder.
-
getInvalidatedValues
-
getValues
-
getExtensionName
-
addAll
Description copied from interface:ExtensionDataBuilder
Adds all values and tables in another builder to this builder.- Specified by:
addAll
in interfaceExtensionDataBuilder
- Parameters:
builder
- Builder to combine with this one.
-