Package org.sentrysoftware.jawk.jrt
Class KeyListImpl
java.lang.Object
org.sentrysoftware.jawk.jrt.KeyListImpl
- All Implemented Interfaces:
KeyList
Implement the KeyList interface with an ArrayList.
- Author:
- Danny Daglas
-
Constructor Details
-
KeyListImpl
Convert the set to a KeyList. We could have used an ArrayList directly. However, tagging the implementation with a KeyList interface improves type checking within the parsing / semantic analysis phase.- Parameters:
set
- aSet
object
-
-
Method Details
-
getFirstAndRemove
getFirstAndRemove.
- Specified by:
getFirstAndRemove
in interfaceKeyList
- Returns:
- a
Object
object
-
size
public int size()Retrieve the number of elements in the KeyList.
-