@Deprecated public class CountedSet<E> extends Object implements Set<E>
Constructor and Description |
---|
CountedSet()
Deprecated.
Creates a new counted set.
|
CountedSet(int size)
Deprecated.
Creates a new counted set of the specified initial size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o)
Deprecated.
|
boolean |
addAll(Collection<? extends E> c)
Deprecated.
|
void |
clear()
Deprecated.
|
boolean |
contains(Object o)
Deprecated.
|
boolean |
containsAll(Collection<?> c)
Deprecated.
|
int |
getCount(E o)
Deprecated.
Return the count of the specified object.
|
boolean |
isEmpty()
Deprecated.
|
Iterator<E> |
iterator()
Deprecated.
|
boolean |
remove(Object o)
Deprecated.
|
boolean |
removeAll(Collection<?> c)
Deprecated.
|
boolean |
retainAll(Collection<?> c)
Deprecated.
|
void |
setCount(E o,
int c)
Deprecated.
Assigns the specified object the specified count in the set.
|
int |
size()
Deprecated.
|
void |
subtract(E o)
Deprecated.
Reduces the count associated with this object by 1.
|
Object[] |
toArray()
Deprecated.
|
<T> T[] |
toArray(T[] a)
Deprecated.
|
void |
write(String fileName,
int countCutoff)
Deprecated.
|
void |
write(String fileName,
int countCutoff,
String delim)
Deprecated.
|
void |
write(String fileName,
int countCutoff,
String delim,
String encoding)
Deprecated.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream
public CountedSet()
public CountedSet(int size)
size
- The initial size of this set.public boolean add(E o)
public void subtract(E o)
o
- The object whose count is being reduced.public void setCount(E o, int c)
o
- The object to be added or updated in the set.c
- The count of the specified object.public int getCount(E o)
o
- the object whose count needs to be determined.@Deprecated public void write(String fileName, int countCutoff)
CountedSet
.fileName
- countCutoff
- @Deprecated public void write(String fileName, int countCutoff, String delim)
CountedSet
.fileName
- countCutoff
- delim
- @Deprecated public void write(String fileName, int countCutoff, String delim, String encoding)
CountedSet
.fileName
- countCutoff
- delim
- encoding
- public boolean addAll(Collection<? extends E> c)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public boolean isEmpty()
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public int size()
public Object[] toArray()
Copyright © 2016 The Apache Software Foundation. All rights reserved.