public class Couple extends Object
This class provides a representation of couple (A,B) of objects.
Constructor and Description |
---|
Couple(Object l,
Object r)
Constructor from two objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Couple c)
Returns true if c is equals to this component.
|
Object |
getLeft()
Returns left hand side of this component.
|
Object |
getRight()
Returns right hand side of this component.
|
int |
hashCode()
Compute the hash code.
|
Couple |
setLeft(Object left)
Set left hand side of this component.
|
Couple |
setRight(Object right)
Set right hand side of this component.
|
String |
toString()
Returns a string representations of this component.
|
public Object getLeft()
Returns left hand side of this component.
public Couple setLeft(Object left)
Set left hand side of this component.
left
- hand side of this componentpublic Object getRight()
Returns right hand side of this component.
public Couple setRight(Object right)
Set right hand side of this component.
right
- hand side of this componentpublic boolean equals(Couple c)
Returns true if c is equals to this component.
c
- Couple tested with this componentpublic int hashCode()
Compute the hash code.
Copyright © 2010–2016 The Galactic Organization. All rights reserved.