Class ExtDataBuilder
java.lang.Object
com.djrapitops.plan.extension.implementation.builder.ExtDataBuilder
- All Implemented Interfaces:
ExtensionDataBuilder
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(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 useNotReadyExceptionwhen building your data.invalidateValue(String text) Invalidate a value similar toInvalidateMethodannotation, but with the text given toExtensionDataBuilder.valueBuilder(String).valueBuilder(String text) Creates a newValueBuilderin order to use addValue methods.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.djrapitops.plan.extension.builder.ExtensionDataBuilder
addTable, addTable
-
Constructor Details
-
ExtDataBuilder
-
-
Method Details
-
valueBuilder
Description copied from interface:ExtensionDataBuilderCreates a newValueBuilderin 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
InvalidateMethodwith built values, lowercase 'text' and remove all whitespace. ExamplevalueBuilder("Times Jumped"); @InvalidateMethod("timesjumped")- Specified by:
valueBuilderin interfaceExtensionDataBuilder- Parameters:
text- Text that should be displayed next to the value.- Returns:
- a new value builder.
-
addValue
Description copied from interface:ExtensionDataBuilderAdd a value.- Specified by:
addValuein interfaceExtensionDataBuilder- Type Parameters:
T- Type of the data.- Parameters:
ofType- Class for type of the data, matches what Provider annotations want.dataValue- UseValueBuilderto create one.- Returns:
- This builder.
-
addValue
Description copied from interface:ExtensionDataBuilderCompared to the other addValue method, this method allows you to useNotReadyExceptionwhen building your data.- Specified by:
addValuein interfaceExtensionDataBuilder- Type Parameters:
T- Type of the data.- Parameters:
ofType- Class for type of the data, matches what Provider annotations want.dataValue- UseValueBuilderto create one.- Returns:
- This builder.
-
invalidateValue
Description copied from interface:ExtensionDataBuilderInvalidate a value similar toInvalidateMethodannotation, but with the text given toExtensionDataBuilder.valueBuilder(String).- Specified by:
invalidateValuein interfaceExtensionDataBuilder- Parameters:
text- The same text that was given to the value builder.- Returns:
- This builder.
-
getInvalidatedValues
-
getValues
-
getExtensionName
-
addAll
Description copied from interface:ExtensionDataBuilderAdds all values and tables in another builder to this builder.- Specified by:
addAllin interfaceExtensionDataBuilder- Parameters:
builder- Builder to combine with this one.
-