13
0
geforkt von Mirrors/Velocity

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

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-07-21 19:41:15 -04:00
Ursprung 250a35e53b
Commit a55e690ad6
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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;

Datei anzeigen

@ -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) {