T
- The type of Major Record a GRUP contains.public class GRUP<T extends MajorRecord> extends Record implements java.lang.Iterable<T>
Modifier and Type | Method and Description |
---|---|
void |
addRecord(T item)
Adds a record to the group, and does the following: 1) Standardizes the
record's FormIDs to the database the GRUP is contained in.
|
void |
clear()
Deletes all records from the GRUP.
|
boolean |
contains(FormID id) |
boolean |
contains(java.lang.String edid) |
boolean |
contains(T item) |
boolean |
equals(java.lang.Object obj) |
MajorRecord |
get(FormID id) |
MajorRecord |
get(java.lang.String edid) |
GRUP_TYPE |
getContainedType() |
int |
getRecordLength(lev.LImport in) |
java.util.ArrayList<T> |
getRecords() |
java.lang.Boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
void |
merge(GRUP<T> rhs)
Takes all records from rhs and adds them to the GRUP.
|
int |
numRecords() |
java.lang.String |
print()
Prints contents of GRUP to the asynchronous log.
|
boolean |
removeRecord(FormID id)
Removes a record from the GRUP.
|
boolean |
removeRecord(T item)
Removes a record from the GRUP.
|
int |
size() |
java.lang.String |
toString()
Returns a short summary/title of the record.
|
public GRUP_TYPE getContainedType()
public java.lang.String toString()
Record
public java.lang.Boolean isEmpty()
public int size()
public java.lang.String print()
public int numRecords()
public boolean removeRecord(FormID id)
id
- The FormID of the record to remove.public boolean removeRecord(T item)
item
- Major Record to remove. Removal is based on FormID match.public void addRecord(T item)
item
- Record to add to the GRUP.public java.util.ArrayList<T> getRecords()
public boolean contains(FormID id)
id
- FormID to look for.public boolean contains(java.lang.String edid)
edid
- EDID to look for.public boolean contains(T item)
item
- Record to check check for containment. (based on its FormID)public MajorRecord get(FormID id)
id
- FormID to query the GRUP for.public MajorRecord get(java.lang.String edid)
edid
- EDID to query the GRUP for.public void clear()
public void merge(GRUP<T> rhs)
rhs
- GRUP to copy records from.public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T extends MajorRecord>
public int getRecordLength(lev.LImport in)
getRecordLength
in class Record
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object