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 void
add(int index, CustomProperty element)
void
clear()
CustomProperty
get(int index)
CustomProperty
get(String name)
Gets theCustomProperty
with the specified name, from the collection, or returns null if not found.Object
getOwner()
Gets the instance that these custom properties belong to.CustomProperty
remove(int index)
CustomProperty
set(int index, CustomProperty element)
int
size()
-
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 theCustomProperty
with the specified name, from the collection, or returns null if not found.- Parameters:
name
- The name of theCustomProperty
to return.- Returns:
- The
CustomProperty
with the specified name, or null if not found.
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<CustomProperty>
- Specified by:
clear
in interfaceList<CustomProperty>
- Overrides:
clear
in classAbstractList<CustomProperty>
-
remove
public CustomProperty remove(int index)
- Specified by:
remove
in interfaceList<CustomProperty>
- Overrides:
remove
in classAbstractList<CustomProperty>
-
add
public void add(int index, CustomProperty element)
- Specified by:
add
in interfaceList<CustomProperty>
- Overrides:
add
in classAbstractList<CustomProperty>
-
set
public CustomProperty set(int index, CustomProperty element)
- Specified by:
set
in interfaceList<CustomProperty>
- Overrides:
set
in classAbstractList<CustomProperty>
-
get
public CustomProperty get(int index)
- Specified by:
get
in interfaceList<CustomProperty>
- Specified by:
get
in classAbstractList<CustomProperty>
-
size
public int size()
- Specified by:
size
in interfaceCollection<CustomProperty>
- Specified by:
size
in interfaceList<CustomProperty>
- Specified by:
size
in classAbstractCollection<CustomProperty>
-
-