Package com.bayesserver
Class CustomPropertyCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<CustomProperty>
-
- com.bayesserver.CustomPropertyCollection
-
- All Implemented Interfaces:
Iterable<CustomProperty>,Collection<CustomProperty>,List<CustomProperty>
public final class CustomPropertyCollection extends AbstractList<CustomProperty>
Stores custom properties for a variety of objects.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, CustomProperty element)voidclear()CustomPropertyget(int index)CustomPropertyget(String name)Gets theCustomPropertywith the specified name, from the collection, or returns null if not found.ObjectgetOwner()Gets the instance that these custom properties belong to.CustomPropertyremove(int index)CustomPropertyset(int index, CustomProperty element)intsize()-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
getOwner
public Object getOwner()
Gets the instance that these custom properties belong to.
-
get
public CustomProperty get(String name)
Gets theCustomPropertywith the specified name, from the collection, or returns null if not found.- Parameters:
name- The name of theCustomPropertyto return.- Returns:
- The
CustomPropertywith the specified name, or null if not found.
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<CustomProperty>- Specified by:
clearin interfaceList<CustomProperty>- Overrides:
clearin classAbstractList<CustomProperty>
-
remove
public CustomProperty remove(int index)
- Specified by:
removein interfaceList<CustomProperty>- Overrides:
removein classAbstractList<CustomProperty>
-
add
public void add(int index, CustomProperty element)- Specified by:
addin interfaceList<CustomProperty>- Overrides:
addin classAbstractList<CustomProperty>
-
set
public CustomProperty set(int index, CustomProperty element)
- Specified by:
setin interfaceList<CustomProperty>- Overrides:
setin classAbstractList<CustomProperty>
-
get
public CustomProperty get(int index)
- Specified by:
getin interfaceList<CustomProperty>- Specified by:
getin classAbstractList<CustomProperty>
-
size
public int size()
- Specified by:
sizein interfaceCollection<CustomProperty>- Specified by:
sizein interfaceList<CustomProperty>- Specified by:
sizein classAbstractCollection<CustomProperty>
-
-