public class EmptyMemory<T> extends java.lang.Object implements IMemoryView<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsNonZero(T value) |
boolean |
containsNonZeroUnsafe(java.lang.Object value) |
java.util.Set<T> |
distinctValues()
The set of distinct values
|
boolean |
equals(java.lang.Object obj) |
int |
getCount(T value)
Returns the number of occurrences of the given value.
|
int |
getCountUnsafe(java.lang.Object value)
Returns the number of occurrences of the given value (which may be of any type).
|
int |
hashCode() |
static <T> EmptyMemory<T> |
instance() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
int |
size() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasMap, asStream, entriesWithMultiplicities, equals, forEachEntryWithMultiplicities, fromMap, hashCode, theContainedVersionOf, theContainedVersionOfUnsafepublic static <T> EmptyMemory<T> instance()
public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>public int getCount(T value)
IMemoryViewgetCount in interface IMemoryView<T>public int getCountUnsafe(java.lang.Object value)
IMemoryViewgetCountUnsafe in interface IMemoryView<T>public boolean containsNonZero(T value)
containsNonZero in interface IMemoryView<T>public boolean containsNonZeroUnsafe(java.lang.Object value)
containsNonZeroUnsafe in interface IMemoryView<T>public int size()
size in interface IMemoryView<T>public boolean isEmpty()
isEmpty in interface IMemoryView<T>public java.util.Set<T> distinctValues()
IMemoryViewdistinctValues in interface IMemoryView<T>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object