Package zombie.util
Class AbstractIntCollection
java.lang.Object
zombie.util.AbstractIntCollection
- All Implemented Interfaces:
IntCollection
- Direct Known Subclasses:
AbstractIntList
,AbstractIntSet
public abstract class AbstractIntCollection extends java.lang.Object implements IntCollection
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractIntCollection()
-
Method Summary
Modifier and Type Method Description boolean
add(int v)
boolean
addAll(IntCollection c)
void
clear()
boolean
contains(int v)
boolean
containsAll(IntCollection c)
boolean
isEmpty()
boolean
remove(int v)
boolean
removeAll(IntCollection c)
boolean
retainAll(IntCollection c)
int
size()
int[]
toArray()
int[]
toArray(int[] a)
java.lang.String
toString()
void
trimToSize()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface zombie.util.IntCollection
equals, hashCode, iterator
-
Constructor Details
-
AbstractIntCollection
protected AbstractIntCollection()
-
-
Method Details
-
add
public boolean add(int v)- Specified by:
add
in interfaceIntCollection
-
addAll
- Specified by:
addAll
in interfaceIntCollection
-
clear
public void clear()- Specified by:
clear
in interfaceIntCollection
-
contains
public boolean contains(int v)- Specified by:
contains
in interfaceIntCollection
-
containsAll
- Specified by:
containsAll
in interfaceIntCollection
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceIntCollection
-
remove
public boolean remove(int v)- Specified by:
remove
in interfaceIntCollection
-
removeAll
- Specified by:
removeAll
in interfaceIntCollection
-
retainAll
- Specified by:
retainAll
in interfaceIntCollection
-
size
public int size()- Specified by:
size
in interfaceIntCollection
-
toArray
public int[] toArray()- Specified by:
toArray
in interfaceIntCollection
-
toArray
public int[] toArray(int[] a)- Specified by:
toArray
in interfaceIntCollection
-
trimToSize
public void trimToSize()- Specified by:
trimToSize
in interfaceIntCollection
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-