public class ExtentCollection extends Object implements Collection
| Modifier and Type | Field and Description |
|---|---|
protected Class |
persistenceCapableClass
This extent collection reperesents the extent of persistenceCapableClass.
|
protected PersistenceManager |
pm
The PersistenceManager getExtent is called from
|
| Constructor and Description |
|---|
ExtentCollection(PersistenceManager pm,
Class persistenceCapableClass,
boolean subclasses) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o)
Extent collection is unmodifiable => throw UnsupportedOperationException
|
boolean |
addAll(Collection c)
Extent collection is unmodifiable => throw UnsupportedOperationException
|
void |
clear()
Extent collection is unmodifiable => throw UnsupportedOperationException
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
equals(Object o)
Two extent collections are equal, iff the names of their persistence capable class are equal
|
Class |
getPersistenceCapableClass() |
int |
hashCode()
The hashCode is mapped to the hashCode of the name of the extent collection's persistence capable class
|
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object o)
Extent collection is unmodifiable => throw UnsupportedOperationException
|
boolean |
removeAll(Collection c)
Extent collection is unmodifiable => throw UnsupportedOperationException
|
boolean |
retainAll(Collection c)
Extent collection is unmodifiable => throw UnsupportedOperationException
|
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitparallelStream, removeIf, spliterator, streamprotected PersistenceManager pm
protected Class persistenceCapableClass
public ExtentCollection(PersistenceManager pm, Class persistenceCapableClass, boolean subclasses)
persistenceCapableClass - Class of instancessubclasses - whether to include instances of subclassespublic Class getPersistenceCapableClass()
public int size()
size in interface Collectionpublic boolean isEmpty()
isEmpty in interface Collectionpublic boolean contains(Object o)
contains in interface Collectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] a)
toArray in interface Collectionpublic boolean add(Object o)
add in interface Collectionpublic boolean remove(Object o)
remove in interface Collectionpublic boolean containsAll(Collection c)
containsAll in interface Collectionpublic boolean addAll(Collection c)
addAll in interface Collectionpublic boolean removeAll(Collection c)
removeAll in interface Collectionpublic boolean retainAll(Collection c)
retainAll in interface Collectionpublic void clear()
clear in interface Collectionpublic boolean equals(Object o)
equals in interface Collectionequals in class Objectpublic int hashCode()
hashCode in interface CollectionhashCode in class ObjectCopyright © 2017. All rights reserved.