aa
com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong Class Reference

A class which implements the Iterator and Enumeration interfaces, generified to the Long class and supporting a non-auto-boxing nextLong function. More...

Inheritance diagram for com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong:
[legend]
Collaboration diagram for com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong:
[legend]

Public Member Functions

 IteratorLong ()
 A new IteratorLong. More...
 
boolean hasMoreElements ()
 True if there are more keys to iterate over. More...
 
boolean hasNext ()
 True if there are more keys to iterate over. More...
 
Long next ()
 Auto-box and return the next key. More...
 
Long nextElement ()
 Auto-box and return the next key. More...
 
long nextLong ()
 Return the next key as a primitive. More...
 
void remove ()
 Remove last key returned by next or nextLong. More...
 

Private Attributes

final SnapshotV _ss
 

Detailed Description

A class which implements the Iterator and Enumeration interfaces, generified to the Long class and supporting a non-auto-boxing nextLong function.


Definition at line 1131 of file NonBlockingHashMapLong.java.

Constructor & Destructor Documentation

◆ IteratorLong()

com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.IteratorLong ( )

A new IteratorLong.

Definition at line 1134 of file NonBlockingHashMapLong.java.

1134 { _ss = new SnapshotV(); }

References com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong._ss.

Member Function Documentation

◆ hasMoreElements()

boolean com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.hasMoreElements ( )

True if there are more keys to iterate over.

Definition at line 1146 of file NonBlockingHashMapLong.java.

1146 { return hasNext(); }

References com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.hasNext().

Here is the call graph for this function:

◆ hasNext()

boolean com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.hasNext ( )

True if there are more keys to iterate over.

Definition at line 1142 of file NonBlockingHashMapLong.java.

1142 { return _ss.hasNext(); }

References com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong._ss, and com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.SnapshotV.hasNext().

Referenced by com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.hasMoreElements().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ next()

Long com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.next ( )

Auto-box and return the next key.

Definition at line 1138 of file NonBlockingHashMapLong.java.

1138 { _ss.next(); return _ss._prevK; }

References com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.SnapshotV._prevK, com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong._ss, and com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.SnapshotV.next().

Referenced by com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.nextElement().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nextElement()

Long com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.nextElement ( )

Auto-box and return the next key.

Definition at line 1144 of file NonBlockingHashMapLong.java.

1144 { return next(); }

References com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.next().

Here is the call graph for this function:

◆ nextLong()

long com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.nextLong ( )

Return the next key as a primitive.

long

.

Definition at line 1140 of file NonBlockingHashMapLong.java.

1140 { _ss.next(); return _ss._prevK; }

References com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.SnapshotV._prevK, com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong._ss, and com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.SnapshotV.next().

Here is the call graph for this function:

◆ remove()

void com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong.remove ( )

Remove last key returned by next or nextLong.

Definition at line 1136 of file NonBlockingHashMapLong.java.

1136 { _ss.removeKey(); }

References com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.IteratorLong._ss, and com.cliffc.aa.util.NonBlockingHashMapLong< TypeV >.SnapshotV.removeKey().

Here is the call graph for this function:

Member Data Documentation

◆ _ss


The documentation for this class was generated from the following file:
com.cliffc.aa.util.NonBlockingHashMapLong.IteratorLong._ss
final SnapshotV _ss
Definition: NonBlockingHashMapLong.java:1132
com.cliffc.aa.util.NonBlockingHashMapLong.SnapshotV.removeKey
void removeKey()
Definition: NonBlockingHashMapLong.java:1081
com.cliffc.aa.util.NonBlockingHashMapLong.SnapshotV.hasNext
boolean hasNext()
Definition: NonBlockingHashMapLong.java:1054
com.cliffc.aa.util.NonBlockingHashMapLong.SnapshotV._prevK
long _prevK
Definition: NonBlockingHashMapLong.java:1052
com.cliffc.aa.util.NonBlockingHashMapLong.SnapshotV.next
TypeV next()
Definition: NonBlockingHashMapLong.java:1055
com.cliffc.aa.util.NonBlockingHashMapLong.IteratorLong.hasNext
boolean hasNext()
True if there are more keys to iterate over.
Definition: NonBlockingHashMapLong.java:1142
com.cliffc.aa.util.NonBlockingHashMapLong.IteratorLong.next
Long next()
Auto-box and return the next key.
Definition: NonBlockingHashMapLong.java:1138