-
- Type Parameters:
L - left.
R - right.
- All Implemented Interfaces:
- Pair<L,R>, java.io.Serializable
@Immutable
public class PairImpl<L,R>
extends Tuple
implements Pair<L,R>
Implementation of pair tuple.
- Since:
- 1.2.0
- Author:
- Ardika Rommy Sanjaya
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors
| Constructor and Description |
PairImpl(L left,
R right) |
-
Method Summary
-
Methods inherited from class com.ardikars.common.tuple.Tuple
of, of, of, of
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
Method Detail
-
getLeft
public L getLeft()
- Specified by:
getLeft in interface Pair<L,R>
-
size
public int size()
- Specified by:
size in class Tuple
https://github.com/ardikars/java-common.git
Copyright © 2017 - 2019 ardikars.com. All rights reserved.