|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> asaph >> [ standardmodel overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.virtuosotechnologies.asaph.standardmodel
Class StdSongIDResultSet

java.lang.Objectcom.virtuosotechnologies.asaph.standardmodel.StdSongIDResultSet
- All Implemented Interfaces:
- java.util.Collection, java.lang.Iterable, java.util.Set, com.virtuosotechnologies.asaph.model.SongIDResultSet
- class StdSongIDResultSet
- extends java.lang.Object
- implements com.virtuosotechnologies.asaph.model.SongIDResultSet
- extends java.lang.Object
Standard implementation of SongIDResultSet
| Nested Class Summary | |
(package private) class |
StdSongIDResultSet.EntryImpl
|
| Nested classes inherited from class com.virtuosotechnologies.asaph.model.SongIDResultSet |
com.virtuosotechnologies.asaph.model.SongIDResultSet.Entry |
| Field Summary | |
private com.virtuosotechnologies.asaph.model.SongDatabase |
database_
|
private java.util.Map |
dataMap_
|
private StdSongIDResultSet |
setLink_
|
| Constructor Summary | |
(package private) |
StdSongIDResultSet(com.virtuosotechnologies.asaph.model.SongDatabase database)
|
(package private) |
StdSongIDResultSet(StdSongIDResultSet link)
|
| Method Summary | |
boolean |
add(java.lang.Object o)
Adds the specified element to the set if it is not already present (optional operation). |
boolean |
addAll(java.util.Collection c)
Adds all of the elements of the given collection to this set (optional operation). |
void |
clear()
Removes all elements from this set (optional operation). |
void |
clearSongCache()
Clear the song caches for all entries in the set |
boolean |
contains(java.lang.Object o)
Returns true if the set contains the specified element. |
boolean |
containsAll(java.util.Collection c)
Returns true if this set contains all elements in the specified collection. |
com.virtuosotechnologies.asaph.model.SongIDResultSet |
createLinkedCopy()
Create a copy of this result set that is linked to this one. |
com.virtuosotechnologies.asaph.model.SongDatabase |
getDatabase()
Get the SongDatabase that created this result set. |
java.util.Collection |
getEntryCollection()
Get a collection view of the entries in the set, backed by the set. |
com.virtuosotechnologies.asaph.model.SongIDResultSet.Entry |
getEntryFor(com.virtuosotechnologies.asaph.model.SongID songID)
Get the data associated with the given SongID. |
boolean |
isEmpty()
Returns true if the set contains no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the set. |
boolean |
remove(java.lang.Object o)
Removes the specified element from this set (optional operation). |
boolean |
removeAll(java.util.Collection c)
Removes from this set all elements contained in the specified collection (optional operation). |
boolean |
retainAll(java.util.Collection c)
Retains only the elements in this set that are also in the specified collection (optional operation). |
int |
size()
Returns the number of elements in the set. |
java.lang.Object[] |
toArray()
Returns an array containing the elements of this set. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing the elements of this set, of the same runtime type of the argument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Set |
equals, hashCode |
| Field Detail |
database_
private com.virtuosotechnologies.asaph.model.SongDatabase database_
dataMap_
private java.util.Map dataMap_
setLink_
private StdSongIDResultSet setLink_
| Constructor Detail |
StdSongIDResultSet
StdSongIDResultSet(com.virtuosotechnologies.asaph.model.SongDatabase database)
StdSongIDResultSet
StdSongIDResultSet(StdSongIDResultSet link)
| Method Detail |
size
public int size()
- Description copied from interface:
java.util.Set - Returns the number of elements in the set. If there are more
than Integer.MAX_VALUE mappings, return Integer.MAX_VALUE. This is
the cardinality of the set.
- Specified by:
sizein interfacejava.util.Set
isEmpty
public boolean isEmpty()
- Description copied from interface:
java.util.Set - Returns true if the set contains no elements.
- Specified by:
isEmptyin interfacejava.util.Set
contains
public boolean contains(java.lang.Object o)
- Description copied from interface:
java.util.Set - Returns true if the set contains the specified element. In other words,
this looks for
o == null ? e == null : o.equals(e).- Specified by:
containsin interfacejava.util.Set
iterator
public java.util.Iterator iterator()
- Description copied from interface:
java.util.Set - Returns an iterator over the set. The iterator has no specific order,
unless further specified.
- Specified by:
iteratorin interfacejava.util.Set
toArray
public java.lang.Object[] toArray()
- Description copied from interface:
java.util.Set - Returns an array containing the elements of this set. If the set
makes a guarantee about iteration order, the array has the same
order. The array is distinct from the set; modifying one does not
affect the other.
- Specified by:
toArrayin interfacejava.util.Set
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
- Description copied from interface:
java.util.Set - Returns an array containing the elements of this set, of the same runtime
type of the argument. If the given set is large enough, it is reused,
and null is inserted in the first unused slot. Otherwise, reflection
is used to build a new array. If the set makes a guarantee about iteration
order, the array has the same order. The array is distinct from the set;
modifying one does not affect the other.
- Specified by:
toArrayin interfacejava.util.Set
add
public boolean add(java.lang.Object o)
- Description copied from interface:
java.util.Set - Adds the specified element to the set if it is not already present
(optional operation). In particular, the comparison algorithm is
o == null ? e == null : o.equals(e). Sets need not permit all values, and may document what exceptions will be thrown if a value is not permitted.- Specified by:
addin interfacejava.util.Set
remove
public boolean remove(java.lang.Object o)
- Description copied from interface:
java.util.Set - Removes the specified element from this set (optional operation). If
an element e exists,
o == null ? e == null : o.equals(e), it is removed from the set.- Specified by:
removein interfacejava.util.Set
containsAll
public boolean containsAll(java.util.Collection c)
- Description copied from interface:
java.util.Set - Returns true if this set contains all elements in the specified
collection. If the argument is also a set, this is the subset
relationship.
- Specified by:
containsAllin interfacejava.util.Set
addAll
public boolean addAll(java.util.Collection c)
- Description copied from interface:
java.util.Set - Adds all of the elements of the given collection to this set (optional
operation). If the argument is also a Set, this returns the mathematical
union of the two. The behavior is unspecified if the set is
modified while this is taking place.
- Specified by:
addAllin interfacejava.util.Set
retainAll
public boolean retainAll(java.util.Collection c)
- Description copied from interface:
java.util.Set - Retains only the elements in this set that are also in the specified
collection (optional operation). If the argument is also a set, this
performs the intersection of the two sets.
- Specified by:
retainAllin interfacejava.util.Set
removeAll
public boolean removeAll(java.util.Collection c)
- Description copied from interface:
java.util.Set - Removes from this set all elements contained in the specified collection
(optional operation). If the argument is a set, this returns the
asymmetric set difference of the two sets.
- Specified by:
removeAllin interfacejava.util.Set
clear
public void clear()
- Description copied from interface:
java.util.Set - Removes all elements from this set (optional operation). This set will
be empty afterwords, unless an exception occurs.
- Specified by:
clearin interfacejava.util.Set
createLinkedCopy
public com.virtuosotechnologies.asaph.model.SongIDResultSet createLinkedCopy()
- Create a copy of this result set that is linked to this one.
A linked copy shares the song cache of the original. In addition, its initial
data values are the same as the data for the original; however, the data can later
be changed independent of the original.
- Specified by:
createLinkedCopyin interfacecom.virtuosotechnologies.asaph.model.SongIDResultSet
getDatabase
public com.virtuosotechnologies.asaph.model.SongDatabase getDatabase()
- Get the SongDatabase that created this result set.
- Specified by:
getDatabasein interfacecom.virtuosotechnologies.asaph.model.SongIDResultSet
getEntryFor
public com.virtuosotechnologies.asaph.model.SongIDResultSet.Entry getEntryFor(com.virtuosotechnologies.asaph.model.SongID songID)
- Get the data associated with the given SongID.
- Specified by:
getEntryForin interfacecom.virtuosotechnologies.asaph.model.SongIDResultSet
getEntryCollection
public java.util.Collection getEntryCollection()
- Get a collection view of the entries in the set, backed by the set.
Each item in the collection is an Entry object.
The collection can be modified by removing elements, but not by adding.
- Specified by:
getEntryCollectionin interfacecom.virtuosotechnologies.asaph.model.SongIDResultSet
clearSongCache
public void clearSongCache()
- Clear the song caches for all entries in the set
- Specified by:
clearSongCachein interfacecom.virtuosotechnologies.asaph.model.SongIDResultSet
|
|||||||||
| Home >> All >> com >> virtuosotechnologies >> asaph >> [ standardmodel overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.virtuosotechnologies.asaph.standardmodel.StdSongIDResultSet