Class ModificationGroup
java.lang.Object
de.rpgframework.genericrpg.modification.Modification
de.rpgframework.genericrpg.modification.ModificationGroup
- All Implemented Interfaces:
Cloneable,Iterable<Modification>,Collection<Modification>,List<Modification>,SequencedCollection<Modification>
@Root(name="allmod")
@ElementList(entry="allowmod",type=AllowModification.class) @ElementList(entry="checkmod",type=CheckModification.class) @ElementList(entry="costmod",type=CostModification.class) @ElementList(entry="embed",type=EmbedModification.class) @ElementList(entry="valmod",type=ValueModification.class) @ElementList(entry="itemmod",type=DataItemModification.class) @ElementList(entry="recommod",type=RecommendationModification.class) @ElementList(entry="relevancemod",type=RelevanceModification.class)
public class ModificationGroup
extends Modification
implements List<Modification>
-
Nested Class Summary
Nested classes/interfaces inherited from class de.rpgframework.genericrpg.modification.Modification
Modification.Origin -
Field Summary
Fields inherited from class de.rpgframework.genericrpg.modification.Modification
apply, conditions, origin, source, type, when -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, Modification element) booleanadd(Modification e) booleanaddAll(int index, Collection<? extends Modification> c) booleanaddAll(Collection<? extends Modification> c) voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) getModification(UUID key) getUUID()intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) set(int index, Modification element) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) voidvalidate()Validate all modifications in this listMethods inherited from class de.rpgframework.genericrpg.modification.Modification
clone, equals, getApplyTo, getConditionString, getOrigin, getReferenceType, getSource, getWhen, isConditional, setApplyTo, setConditionString, setOrigin, setSource, setWhenMethods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
ModificationGroup
public ModificationGroup()
-
-
Method Details
-
getUUID
-
getModification
-
iterator
- Specified by:
iteratorin interfaceCollection<Modification>- Specified by:
iteratorin interfaceIterable<Modification>- Specified by:
iteratorin interfaceList<Modification>
-
getModificiations
-
validate
Validate all modifications in this list- Overrides:
validatein classModification- Throws:
ReferenceException
-
size
public int size()- Specified by:
sizein interfaceCollection<Modification>- Specified by:
sizein interfaceList<Modification>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Modification>- Specified by:
isEmptyin interfaceList<Modification>
-
contains
- Specified by:
containsin interfaceCollection<Modification>- Specified by:
containsin interfaceList<Modification>
-
toArray
- Specified by:
toArrayin interfaceCollection<Modification>- Specified by:
toArrayin interfaceList<Modification>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Modification>- Specified by:
toArrayin interfaceList<Modification>
-
add
- Specified by:
addin interfaceCollection<Modification>- Specified by:
addin interfaceList<Modification>
-
remove
- Specified by:
removein interfaceCollection<Modification>- Specified by:
removein interfaceList<Modification>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Modification>- Specified by:
containsAllin interfaceList<Modification>
-
addAll
- Specified by:
addAllin interfaceCollection<Modification>- Specified by:
addAllin interfaceList<Modification>
-
addAll
- Specified by:
addAllin interfaceList<Modification>
-
removeAll
- Specified by:
removeAllin interfaceCollection<Modification>- Specified by:
removeAllin interfaceList<Modification>
-
retainAll
- Specified by:
retainAllin interfaceCollection<Modification>- Specified by:
retainAllin interfaceList<Modification>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Modification>- Specified by:
clearin interfaceList<Modification>
-
get
- Specified by:
getin interfaceList<Modification>
-
set
- Specified by:
setin interfaceList<Modification>
-
add
- Specified by:
addin interfaceList<Modification>
-
remove
- Specified by:
removein interfaceList<Modification>
-
indexOf
- Specified by:
indexOfin interfaceList<Modification>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Modification>
-
listIterator
- Specified by:
listIteratorin interfaceList<Modification>
-
listIterator
- Specified by:
listIteratorin interfaceList<Modification>
-
subList
- Specified by:
subListin interfaceList<Modification>
-