/** * A sensible definition of {@link #setCount(Object, int)} in terms of {@link #count(Object)}, * {@link #add(Object, int)}, and {@link #remove(Object, int)}. {@link #entrySet()}. If you * override any of these methods, you may wish to override {@link #setCount(Object, int)} to * forward to this implementation. * * @since 7.0 */ protected int standardSetCount(E element, int count) { return Multisets.setCountImpl(this, element, count); }
/** * A sensible definition of {@link #setCount(Object, int, int)} in terms of {@link #count(Object)} * and {@link #setCount(Object, int)}. If you override either of these methods, you may wish to * override {@link #setCount(Object, int, int)} to forward to this implementation. * * @since 7.0 */ protected boolean standardSetCount(E element, int oldCount, int newCount) { return Multisets.setCountImpl(this, element, oldCount, newCount); }
/** * A sensible definition of {@link #setCount(Object, int)} in terms of {@link #count(Object)}, * {@link #add(Object, int)}, and {@link #remove(Object, int)}. {@link #entrySet()}. If you * override any of these methods, you may wish to override {@link #setCount(Object, int)} to * forward to this implementation. * * @since 7.0 */ protected int standardSetCount(E element, int count) { return Multisets.setCountImpl(this, element, count); }
/** * A sensible definition of {@link #setCount(Object, int, int)} in terms of {@link #count(Object)} * and {@link #setCount(Object, int)}. If you override either of these methods, you may wish to * override {@link #setCount(Object, int, int)} to forward to this implementation. * * @since 7.0 */ protected boolean standardSetCount(E element, int oldCount, int newCount) { return Multisets.setCountImpl(this, element, oldCount, newCount); }
/** * A sensible definition of {@link #setCount(Object, int, int)} in terms of {@link #count(Object)} * and {@link #setCount(Object, int)}. If you override either of these methods, you may wish to * override {@link #setCount(Object, int, int)} to forward to this implementation. * * @since 7.0 */ protected boolean standardSetCount(E element, int oldCount, int newCount) { return Multisets.setCountImpl(this, element, oldCount, newCount); }
/** * A sensible definition of {@link #setCount(Object, int)} in terms of {@link #count(Object)}, * {@link #add(Object, int)}, and {@link #remove(Object, int)}. {@link #entrySet()}. If you * override any of these methods, you may wish to override {@link #setCount(Object, int)} to * forward to this implementation. * * @since 7.0 */ protected int standardSetCount(E element, int count) { return Multisets.setCountImpl(this, element, count); }
@CanIgnoreReturnValue @Override public int setCount(@Nullable E element, int count) { return setCountImpl(this, element, count); }
@CanIgnoreReturnValue @Override public boolean setCount(@Nullable E element, int oldCount, int newCount) { return setCountImpl(this, element, oldCount, newCount); }
@CanIgnoreReturnValue @Override public int setCount(@NullableDecl E element, int count) { return setCountImpl(this, element, count); }
@CanIgnoreReturnValue @Override public boolean setCount(@NullableDecl E element, int oldCount, int newCount) { return setCountImpl(this, element, oldCount, newCount); }
@CanIgnoreReturnValue @Override public int setCount(@NullableDecl E element, int count) { return setCountImpl(this, element, count); }
@CanIgnoreReturnValue @Override public boolean setCount(@NullableDecl E element, int oldCount, int newCount) { return setCountImpl(this, element, oldCount, newCount); }
/** * A sensible definition of {@link #setCount(Object, int, int)} in terms of * {@link #count(Object)} and {@link #setCount(Object, int)}. If you override * either of these methods, you may wish to override {@link #setCount(Object, * int, int)} to forward to this implementation. * * @since 7.0 */ protected boolean standardSetCount(E element, int oldCount, int newCount) { return Multisets.setCountImpl(this, element, oldCount, newCount); }
/** * A sensible definition of {@link #setCount(Object, int)} in terms of {@link #count(Object)}, * {@link #add(Object, int)}, and {@link #remove(Object, int)}. {@link #entrySet()}. If you * override any of these methods, you may wish to override {@link #setCount(Object, int)} to * forward to this implementation. * * @since 7.0 */ protected int standardSetCount(E element, int count) { return Multisets.setCountImpl(this, element, count); }
/** * A sensible definition of {@link #setCount(Object, int)} in terms of {@link * #count(Object)}, {@link #add(Object, int)}, and {@link #remove(Object, * int)}. {@link #entrySet()}. If you override any of these methods, you may * wish to override {@link #setCount(Object, int)} to forward to this * implementation. * * @since 7.0 */ protected int standardSetCount(E element, int count) { return Multisets.setCountImpl(this, element, count); }
/** * A sensible definition of {@link #setCount(Object, int, int)} in terms of * {@link #count(Object)} and {@link #setCount(Object, int)}. If you override * either of these methods, you may wish to override {@link #setCount(Object, * int, int)} to forward to this implementation. * * @since 7.0 */ protected boolean standardSetCount(E element, int oldCount, int newCount) { return Multisets.setCountImpl(this, element, oldCount, newCount); }
/** * A sensible definition of {@link #setCount(Object, int, int)} in terms of * {@link #count(Object)} and {@link #setCount(Object, int)}. If you override * either of these methods, you may wish to override {@link #setCount(Object, * int, int)} to forward to this implementation. * * @since 7.0 */ @Beta protected boolean standardSetCount( E element, int oldCount, int newCount) { return Multisets.setCountImpl(this, element, oldCount, newCount); }
/** * A sensible definition of {@link #setCount(Object, int)} in terms of {@link * #count(Object)}, {@link #add(Object, int)}, and {@link #remove(Object, * int)}. {@link #entrySet()}. If you override any of these methods, you may * wish to override {@link #setCount(Object, int)} to forward to this * implementation. * * @since 7 */ @Beta protected int standardSetCount(E element, int count) { return Multisets.setCountImpl(this, element, count); }
@CanIgnoreReturnValue @Override public int setCount(@NullableDecl E element, int count) { return setCountImpl(this, element, count); }
@CanIgnoreReturnValue @Override public boolean setCount(@NullableDecl E element, int oldCount, int newCount) { return setCountImpl(this, element, oldCount, newCount); }