public class UnorderedPair extends AbstractUnmodifiableCollection implements Serializable
.equals()
.Constructor and Description |
---|
UnorderedPair() |
UnorderedPair(Object first,
Object second) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object object) |
boolean |
equals(Object object)
To conform to the contracts for
Set ,
List , and other potential types of
Collections , instances of this class can only be
.equals() to other instances of this class. |
Object |
getFirst() |
Object |
getSecond() |
int |
hashCode() |
boolean |
isEmpty() |
Iterator |
iterator() |
void |
setFirst(Object first) |
void |
setSecond(Object second) |
int |
size()
This implementation counts the number of elements accessed by
the
Iterator . |
Object[] |
toArray() |
addAll, clear, remove, removeAll, retainAll
add, containsAll, toArray, toString
public Object getFirst()
public void setFirst(Object first)
public Object getSecond()
public void setSecond(Object second)
public int size()
AbstractUnmodifiableCollection
Iterator
.size
in interface Collection
size
in class AbstractUnmodifiableCollection
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in class AbstractCollection
public boolean contains(Object object)
contains
in interface Collection
contains
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in class AbstractCollection
public Object[] toArray()
toArray
in interface Collection
toArray
in class AbstractCollection
public boolean equals(Object object)
Set
,
List
, and other potential types of
Collections
, instances of this class can only be
.equals()
to other instances of this class.equals
in interface Collection
equals
in class Object
public int hashCode()
hashCode
in interface Collection
hashCode
in class Object
See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.