|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.osf.ObjectContainer
org.pf.osf.ObjectSearchResult
public class ObjectSearchResult
Apart from returning the found objects a search result can contain information whether or not the size limit has been reached.
| Field Summary | |
|---|---|
static int |
UNLIMITED_SIZE
Represents the definition of an unlimited result container (value = 0) |
| Constructor Summary | |
|---|---|
ObjectSearchResult()
Initialize the new instance with default values. |
|
ObjectSearchResult(int initialCapacity)
Initialize the new instance with an initial size. |
|
ObjectSearchResult(int initialCapacity,
int maximumSize)
Initialize the new instance with an initial size and a maximum size. |
|
| Method Summary | |
|---|---|
void |
add(AttributeReadAccess object)
Adds the given object to the result if it is not yet full. |
void |
clear()
Resets the result to contain nothing at all. |
int |
getSizeLimit()
Returns the size limit that was set for the search that produced this result |
boolean |
isFull()
Returns true if the result is full and no further objects can be added. |
boolean |
isSizeLimitExceeded()
Returns true if the size limit has been exceeded. |
boolean |
remove(AttributeReadAccess object)
Removes the given object from the container. |
void |
setSizeLimit(int limit)
Sets the limit of objects this result may contain. |
| Methods inherited from class org.pf.osf.ObjectContainer |
|---|
asArray, asList, contains, containsEqualObject, copy, find, find, find, find, find, find, findFirst, findFirst, findFirst, findFirstIgnoreCase, findIgnoreCase, get, isEmpty, removeEqual, set, size |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNLIMITED_SIZE
| Constructor Detail |
|---|
public ObjectSearchResult()
public ObjectSearchResult(int initialCapacity)
initialCapacity - Initial size reserved for elements
public ObjectSearchResult(int initialCapacity,
int maximumSize)
initialCapacity - Initial size reserved for elements| Method Detail |
|---|
public int getSizeLimit()
public void setSizeLimit(int limit)
limit - The maximum number of objects to be contained by this resultpublic void add(AttributeReadAccess object)
add in class ObjectContainerObjectContainer.add(org.pf.reflect.AttributeReadAccess)public void clear()
clear in class ObjectContainerObjectContainer.clear()public boolean remove(AttributeReadAccess object)
ObjectContainer
remove in class ObjectContainerobject - The object to removeObjectContainer.remove(org.pf.reflect.AttributeReadAccess)public boolean isFull()
public boolean isSizeLimitExceeded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||