public class PairOfObjectInt<L extends Comparable<L>> extends Object implements Comparable<PairOfObjectInt<L>>
| Constructor and Description |
|---|
PairOfObjectInt() |
PairOfObjectInt(L left,
int right) |
| Modifier and Type | Method and Description |
|---|---|
PairOfObjectInt<L> |
clone()
Creates a shallow clone of this object; the left element itself is not cloned.
|
int |
compareTo(PairOfObjectInt<L> that) |
L |
getLeftElement() |
int |
getRightElement() |
void |
set(L left,
int right) |
void |
setLeftElement(L left) |
void |
setRightElement(int right) |
String |
toString()
Generates human-readable String representation of this pair.
|
public PairOfObjectInt(L left, int right)
public PairOfObjectInt()
public L getLeftElement()
public int getRightElement()
public void set(L left, int right)
public void setLeftElement(L left)
public void setRightElement(int right)
public String toString()
public PairOfObjectInt<L> clone()
public int compareTo(PairOfObjectInt<L> that)
compareTo in interface Comparable<PairOfObjectInt<L extends Comparable<L>>>Copyright © 2018. All rights reserved.