public class LruSet<E> extends AbstractSet<E> implements Set<E>, Serializable, BoundedCollection<E>
| 限定符和类型 | 字段和说明 |
|---|---|
private static Map<Integer,AtomicInteger> |
counter |
private Set<E> |
delegate |
private Map<E,Object> |
keys |
private static long |
serialVersionUID |
| 构造器和说明 |
|---|
LruSet() |
LruSet(int maxSize) |
LruSet(int maxSize,
LruMapSupplier<E,Object> supplier) |
LruSet(Set<E> delegate,
int maxSize) |
LruSet(Set<E> delegate,
int maxSize,
LruMapSupplier<E,Object> supplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
clear() |
boolean |
contains(Object o) |
Collection<E> |
getDelegate() |
Iterator<E> |
iterator() |
static void |
main(String[] args) |
boolean |
remove(Object o) |
int |
size() |
String |
toString() |
equals, hashCode, removeAlladdAll, containsAll, isEmpty, retainAll, toArray, toArrayaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, spliterator, toArray, toArrayonEvictionparallelStream, removeIf, streamprivate static final long serialVersionUID
private static final Map<Integer,AtomicInteger> counter
public LruSet()
public LruSet(int maxSize)
public LruSet(int maxSize,
LruMapSupplier<E,Object> supplier)
public LruSet(Set<E> delegate, int maxSize, LruMapSupplier<E,Object> supplier)
public boolean contains(Object o)
contains 在接口中 Collection<E>contains 在接口中 Set<E>contains 在类中 AbstractCollection<E>public boolean add(E e)
add 在接口中 Collection<E>add 在接口中 Set<E>add 在类中 AbstractCollection<E>public boolean remove(Object o)
remove 在接口中 Collection<E>remove 在接口中 Set<E>remove 在类中 AbstractCollection<E>public int size()
size 在接口中 Collection<E>size 在接口中 Set<E>size 在类中 AbstractCollection<E>public void clear()
clear 在接口中 Collection<E>clear 在接口中 Set<E>clear 在类中 AbstractCollection<E>public Collection<E> getDelegate()
getDelegate 在接口中 BoundedCollection<E>public String toString()
toString 在类中 AbstractCollection<E>public static void main(String[] args)
Copyright © 2022. All rights reserved.