T - public abstract class LyraNamedElementHolder<T extends LyraNamedElement> extends Object implements Collection<T>, Serializable
| Constructor and Description |
|---|
LyraNamedElementHolder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e)
Deprecated.
|
boolean |
addAll(Collection<? extends T> c) |
void |
addElement(T element)
Adds a named element.
|
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
T |
get(String name)
Gets element by its name.
|
Map<String,T> |
getElements()
The read-only copy of map.
|
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<A> A[] |
toArray(A[] a) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic final void addElement(T element)
element - Element to be added.public final T get(String name)
name - Name of the element.public final boolean isEmpty()
isEmpty in interface Collection<T extends LyraNamedElement>public Iterator<T> iterator()
iterator in interface Iterable<T extends LyraNamedElement>iterator in interface Collection<T extends LyraNamedElement>public int size()
size in interface Collection<T extends LyraNamedElement>public boolean contains(Object o)
contains in interface Collection<T extends LyraNamedElement>public Object[] toArray()
toArray in interface Collection<T extends LyraNamedElement>public <A> A[] toArray(A[] a)
toArray in interface Collection<T extends LyraNamedElement>@Deprecated public boolean add(T e)
add in interface Collection<T extends LyraNamedElement>public boolean remove(Object o)
remove in interface Collection<T extends LyraNamedElement>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T extends LyraNamedElement>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T extends LyraNamedElement>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T extends LyraNamedElement>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T extends LyraNamedElement>public void clear()
clear in interface Collection<T extends LyraNamedElement>Copyright © 2019 CURS. All rights reserved.