Class SectionObjectList<T>
java.lang.Object
com.mrivanplays.annotationconfig.yaml.SectionObjectList<T>
Represents a section list. A YAML example:
foo:
bar:
baz: aa
lorem: ipsum
dolor: sit
amet: lorem
ipsum:
baz: bb
lorem: dolor
dolor: lorem
amet: ipsum
How to use: you have to register a SectionObjectListSerializer
with the help of a
TypeToken
in order for this list to properly
(de)serialize.
- Since:
- v2.1.1
- Author:
- MrIvanPlays
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAsMap()
Returns an unmodifiable representation of thisSectionObjectList
as aMap
Returns theClass
type of the value objects held in this section object list.iterator()
static <T> SectionObjectList.SectionObjectListBuilder<T>
newBuilderForType
(Class<? extends T> type) Creates a newSectionObjectList.SectionObjectListBuilder
with pre-definedClass
type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
newBuilderForType
public static <T> SectionObjectList.SectionObjectListBuilder<T> newBuilderForType(Class<? extends T> type) Creates a newSectionObjectList.SectionObjectListBuilder
with pre-definedClass
type.- Type Parameters:
T
- object type- Parameters:
type
- type- Returns:
- new builder
-
getObjectsType
Returns theClass
type of the value objects held in this section object list.- Returns:
- objects type
-
getAsMap
Returns an unmodifiable representation of thisSectionObjectList
as aMap
- Returns:
- as map
-
iterator
-