|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgov.usda.gdpc.AbstractGroup
gov.usda.gdpc.AbstractDBElementGroup
This class provides a skeletal implementation of the DBElementGroup interface to minimize the effort required to implement this interface.
| Field Summary | |
protected java.util.Map |
myIndex
This map indexes the elements in the group based on the value returned by DBElement.getKey() |
| Constructor Summary | |
AbstractDBElementGroup()
AbstractDBElementGroup constructor. |
|
AbstractDBElementGroup(DBElement[] list)
AbstractDBElementGroup constructor. |
|
AbstractDBElementGroup(DBElementGroup[] groups)
AbstractDBElementGroup constructor. |
|
AbstractDBElementGroup(Group[] groups,
boolean sorted)
AbstractDBElementGroup constructor. |
|
AbstractDBElementGroup(java.util.List list)
AbstractDBElementGroup constructor. |
|
AbstractDBElementGroup(java.util.List list,
boolean sorted)
AbstractDBElementGroup constructor. |
|
AbstractDBElementGroup(java.lang.Object[] list,
boolean sorted)
AbstractDBElementGroup constructor. |
|
| Method Summary | |
protected java.util.List |
getDBElementGroup(Filter filter)
Gets the group of elements that match the given filter from this group. |
java.util.List |
getDBElements(java.lang.String dataSource)
Returns the list of elements contained in this group which originated from the given data source. |
java.util.List |
getDefinedProperties()
This returns a distinct list of properties defined by the elements in this group. |
DistinctPropertyValues |
getDistinctProperties(Property[] properties)
Returns list(s) of distinct property values for the given properties. |
void |
index()
Indexes this group of taxa based on the unique key. |
java.lang.String |
toString()
This returns the string representation of this group. |
| Methods inherited from class gov.usda.gdpc.AbstractGroup |
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gov.usda.gdpc.DBElementGroup |
getType |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
| Field Detail |
protected java.util.Map myIndex
| Constructor Detail |
public AbstractDBElementGroup(DBElement[] list)
list - list of objects to be a part of this group. Any
null in the list will be discarded.
public AbstractDBElementGroup(java.lang.Object[] list,
boolean sorted)
list - list of objects to be a part of this group. Any
null in the list will be discarded.sorted - true if group should be sorted.public AbstractDBElementGroup()
public AbstractDBElementGroup(java.util.List list)
list - list of objects to be a part of this group. Any
null in the list will be discarded.
public AbstractDBElementGroup(java.util.List list,
boolean sorted)
list - list of objects to be a part of this group. Any
null in the list will be discarded.sorted - true if group should be sorted.public AbstractDBElementGroup(DBElementGroup[] groups)
groups - groups to include in this new group.
public AbstractDBElementGroup(Group[] groups,
boolean sorted)
groups - groups to include in this new group.sorted - true if group should be sorted.| Method Detail |
public final java.util.List getDBElements(java.lang.String dataSource)
getDBElements in interface DBElementGroupdataSource - data source
public DistinctPropertyValues getDistinctProperties(Property[] properties)
getDistinctProperties in interface DBElementGroupproperties - list of properties
protected java.util.List getDBElementGroup(Filter filter)
filter - filter
public final void index()
index in interface DBElementGrouppublic java.lang.String toString()
toString in class AbstractGrouppublic java.util.List getDefinedProperties()
getDefinedProperties in interface DBElementGroup
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||