public class ByteArraySet extends Object implements Set<ByteArrayWrapper>
Constructor and Description |
---|
ByteArraySet() |
ByteArraySet(Collection<byte[]> values) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(byte[] e) |
boolean |
add(ByteArrayWrapper e) |
boolean |
addAll(Collection<? extends ByteArrayWrapper> c) |
boolean |
addAll(Iterable<byte[]> c) |
Set<byte[]> |
asRawSet() |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<ByteArrayWrapper> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream
public ByteArraySet()
public ByteArraySet(Collection<byte[]> values)
public int size()
size
in interface Collection<ByteArrayWrapper>
size
in interface Set<ByteArrayWrapper>
public boolean contains(Object o)
contains
in interface Collection<ByteArrayWrapper>
contains
in interface Set<ByteArrayWrapper>
public boolean add(ByteArrayWrapper e)
add
in interface Collection<ByteArrayWrapper>
add
in interface Set<ByteArrayWrapper>
public boolean add(byte[] e)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<ByteArrayWrapper>
containsAll
in interface Set<ByteArrayWrapper>
public boolean addAll(Collection<? extends ByteArrayWrapper> c)
addAll
in interface Collection<ByteArrayWrapper>
addAll
in interface Set<ByteArrayWrapper>
public boolean addAll(Iterable<byte[]> c)
public boolean isEmpty()
isEmpty
in interface Collection<ByteArrayWrapper>
isEmpty
in interface Set<ByteArrayWrapper>
public Iterator<ByteArrayWrapper> iterator()
iterator
in interface Iterable<ByteArrayWrapper>
iterator
in interface Collection<ByteArrayWrapper>
iterator
in interface Set<ByteArrayWrapper>
public Object[] toArray()
toArray
in interface Collection<ByteArrayWrapper>
toArray
in interface Set<ByteArrayWrapper>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<ByteArrayWrapper>
toArray
in interface Set<ByteArrayWrapper>
public boolean remove(Object o)
remove
in interface Collection<ByteArrayWrapper>
remove
in interface Set<ByteArrayWrapper>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<ByteArrayWrapper>
retainAll
in interface Set<ByteArrayWrapper>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<ByteArrayWrapper>
removeAll
in interface Set<ByteArrayWrapper>
public void clear()
clear
in interface Collection<ByteArrayWrapper>
clear
in interface Set<ByteArrayWrapper>
public Set<byte[]> asRawSet()
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.