T1
- first component typeT2
- second component typepublic class IPair<T1,T2> extends AbstractPrintable
Constructor and Description |
---|
IPair(T1 first,
T2 second)
Constructs a pair with the given members.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
T1 |
getFirst()
Getter for the first member.
|
T2 |
getSecond()
Getter for the second member.
|
int |
hashCode() |
void |
print(Appendable a)
Outputs the current object.
|
toString, toString
public T1 getFirst()
public T2 getSecond()
public void print(Appendable a) throws IOException
Printable
a
- the appendable.IOException
- if an error occurs during appending.Copyright © 2015. All rights reserved.