/** {@inheritDoc} */ @Override public boolean contains(Object collection, Object entity) { return ((EventList) collection).contains(entity); }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { return source.contains(object); }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { return source.contains(object); }
/** {@inheritDoc} */ public boolean contains(Object collection, Object entity) { return ((EventList) collection).contains(entity); }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { return source.contains(object); }
/** {@inheritDoc} */ public boolean contains(Object collection, Object entity) { return ((EventList) collection).contains(entity); }
/** * {@inheritDoc} */ @Override public boolean contains(Object o) { return supplyInsideLock(() -> delegate.contains(o)); }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { // Fast fail if the object isn't within the thresholds // Note: this technically breaks the contract for contains. // evaluator.evaluate(object) may throw a ClassCastException if(!withinRange((E)object)) return false; return source.contains(object); }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { // Fast fail if the object isn't within the thresholds // Note: this technically breaks the contract for contains. // evaluator.evaluate(object) may throw a ClassCastException if(!withinRange((E)object)) return false; return source.contains(object); }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { // Fast fail if the object isn't within the thresholds // Note: this technically breaks the contract for contains. // evaluator.evaluate(object) may throw a ClassCastException if(!withinRange((E)object)) return false; return source.contains(object); }
@Override public SelectableItem<E> evaluate(E item) { boolean selected = this.selectionList.contains(item); return new SelectableItem<E>(item, selected); } }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { beforeReadOperation(); try { return delegate.contains(object); } finally { afterReadOperation(); } }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { beforeReadOperation(); try { return delegate.contains(object); } finally { afterReadOperation(); } }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { beforeReadOperation(); try { return delegate.contains(object); } finally { afterReadOperation(); } }
public void select(SelectableItem<E> selectableItem) { E item = selectableItem.getItem(); boolean selected = selectableItem.isSelected(); if (selected) { if (!this.selectionList.contains(item)) { addToSelection(item); } } else { if (this.selectionList.contains(item)) { removeFromSelection(item); } } }
/** * {@inheritDoc} */ @Override public boolean contains(Object o) { source.getReadWriteLock().readLock().lock(); try { return source.contains(o); } finally { source.getReadWriteLock().readLock().unlock(); } }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { getReadWriteLock().readLock().lock(); try { return source.contains(object); } finally { getReadWriteLock().readLock().unlock(); } }
/** {@inheritDoc} */ @Override public boolean contains(Object object) { getReadWriteLock().readLock().lock(); try { return source.contains(object); } finally { getReadWriteLock().readLock().unlock(); } }
public static <E> boolean contains(EventList<E> eventList, E e) { try { eventList.getReadWriteLock().readLock().lock(); return eventList.contains(e); } finally { eventList.getReadWriteLock().readLock().unlock(); } } public static <E> int size(EventList<E> eventList) {
/** {@inheritDoc} */ @Override public boolean contains(Object object) { getReadWriteLock().readLock().lock(); try { return source.contains(object); } finally { getReadWriteLock().readLock().unlock(); } }