These aren't designed to be extended in any way.

This commit is contained in:
Andrew Steinborn
2020-07-21 19:41:15 -04:00
parent 250a35e53b
commit a55e690ad6
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ import java.util.Set;
/** /**
* An unsynchronized collection that puts an upper bound on the size of the collection. * An unsynchronized collection that puts an upper bound on the size of the collection.
*/ */
public class CappedSet<T> extends ForwardingSet<T> { public final class CappedSet<T> extends ForwardingSet<T> {
private final Set<T> delegate; private final Set<T> delegate;
private final int upperSize; private final int upperSize;

View File

@@ -6,7 +6,7 @@ import java.util.EnumSet;
* An immutable map of {@link Enum} entries to {@code int}s. * An immutable map of {@link Enum} entries to {@code int}s.
* @param <E> the enum type * @param <E> the enum type
*/ */
public class Enum2IntMap<E extends Enum<E>> { public final class Enum2IntMap<E extends Enum<E>> {
private final int[] mappings; private final int[] mappings;
private Enum2IntMap(int[] mappings) { private Enum2IntMap(int[] mappings) {