Class ModElementList
java.lang.Object
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<ModElement>, Collection<ModElement>, SequencedCollection<ModElement>, SequencedSet<ModElement>, Set<ModElement>
Set of mod elements in Workspace. Maintains transient indexes for fast lookup by name and type.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(ModElement element) booleanaddAll(Collection<? extends ModElement> elements) voidclear()clone()booleancontainsName(String name) booleancontainsType(ModElementType<?> type) getByType(ModElementType<?> type) iterator()booleanbooleanremoveAll(Collection<?> elements) booleanremoveIf(Predicate<? super ModElement> filter) booleanretainAll(Collection<?> elements) Methods inherited from class LinkedHashSet
addFirst, addLast, getFirst, getLast, newLinkedHashSet, removeFirst, removeLast, reversed, spliteratorMethods inherited from class AbstractSet
equals, hashCodeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, stream, toArray
-
Constructor Details
-
ModElementList
public ModElementList() -
ModElementList
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<ModElement>- Specified by:
addin interfaceSet<ModElement>- Overrides:
addin classHashSet<ModElement>
-
addAll
- Specified by:
addAllin interfaceCollection<ModElement>- Specified by:
addAllin interfaceSet<ModElement>- Overrides:
addAllin classAbstractCollection<ModElement>
-
remove
- Specified by:
removein interfaceCollection<ModElement>- Specified by:
removein interfaceSet<ModElement>- Overrides:
removein classHashSet<ModElement>
-
removeAll
- Specified by:
removeAllin interfaceCollection<ModElement>- Specified by:
removeAllin interfaceSet<ModElement>- Overrides:
removeAllin classAbstractSet<ModElement>
-
retainAll
- Specified by:
retainAllin interfaceCollection<ModElement>- Specified by:
retainAllin interfaceSet<ModElement>- Overrides:
retainAllin classAbstractCollection<ModElement>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<ModElement>- Specified by:
clearin interfaceSet<ModElement>- Overrides:
clearin classHashSet<ModElement>
-
removeIf
-
iterator
- Specified by:
iteratorin interfaceCollection<ModElement>- Specified by:
iteratorin interfaceIterable<ModElement>- Specified by:
iteratorin interfaceSet<ModElement>- Overrides:
iteratorin classHashSet<ModElement>
-
clone
- Overrides:
clonein classHashSet<ModElement>
-
containsName
-
containsType
-
getByName
-
getByType
-