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, retainAlladd, containsAll, toArray, toStringpublic Object getFirst()
public void setFirst(Object first)
public Object getSecond()
public void setSecond(Object second)
public int size()
AbstractUnmodifiableCollectionIterator.size in interface Collectionsize in class AbstractUnmodifiableCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in class AbstractCollectionpublic boolean contains(Object object)
contains in interface Collectioncontains in class AbstractCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in class AbstractCollectionpublic Object[] toArray()
toArray in interface CollectiontoArray in class AbstractCollectionpublic 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 Collectionequals in class Objectpublic int hashCode()
hashCode in interface CollectionhashCode in class ObjectSee 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.