@Test public void testGet() { ExtendedSet<TestValue> set = new ExtendedSet<>(Maps.newConcurrentMap()); TestValue e1 = new TestValue("foo", 1); set.add(e1); TestValue lookupValue = new TestValue("foo", 2); TestValue setEntry = set.get(lookupValue); assertEquals(e1, setEntry); }
public E get(Object o) { return map.get(o); }
ExtendedSet implements Set<E> { public E get(Object o) { return map.get(o); } }
ExtendedSet implements Set<E> { public E get(Object o) { return map.get(o); } ExtendedSet(Map<E, E> map); }
ExtendedSet implements Set<E> { public E get(Object o) { return map.get(o); } ExtendedSet(Map<E, E> map); E get(Object o); boolean insertOrReplace(E entry, Predicate<E> entryTest); boolean conditionalRemove(E entry, Predicate<E> entryTest); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<E> iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override boolean add(E e); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends E> c); @Override boolean retainAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override void clear(); }
ExtendedSet implements Set<E> { public E get(Object o) { return map.get(o); } ExtendedSet(Map<E, E> map); E get(Object o); boolean insertOrReplace(E entry, Predicate<E> entryTest); boolean conditionalRemove(E entry, Predicate<E> entryTest); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<E> iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override boolean add(E e); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends E> c); @Override boolean retainAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override void clear();  }