public class Tuple<A,B> extends Object implements Collection
Generic Tuple
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator |
iterator() |
A |
left() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
B |
right() |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
parallelStream, removeIf, spliterator, stream
public A left()
public B right()
public int size()
size
in interface Collection
public boolean isEmpty()
isEmpty
in interface Collection
public boolean contains(Object o)
contains
in interface Collection
@Nonnull public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
@Nonnull public Object[] toArray()
toArray
in interface Collection
public boolean add(Object o)
add
in interface Collection
public boolean remove(Object o)
remove
in interface Collection
public boolean addAll(@Nonnull Collection c)
addAll
in interface Collection
public void clear()
clear
in interface Collection
public boolean retainAll(@Nonnull Collection c)
retainAll
in interface Collection
public boolean removeAll(@Nonnull Collection c)
removeAll
in interface Collection
public boolean containsAll(@Nonnull Collection c)
containsAll
in interface Collection
@Nonnull public Object[] toArray(@Nonnull Object[] a)
toArray
in interface Collection
public boolean equals(Object o)
equals
in interface Collection
equals
in class Object
public int hashCode()
hashCode
in interface Collection
hashCode
in class Object
Copyright © 2015–2020. All rights reserved.