this.needClone = false;
}
- /**
- * @deprecated Use {@link #orderedCopyOf(Map)} or {@link #unorderedCopyOf(Map)} instead.
- */
- @Deprecated
- public static <K, V> MutableOffsetMap<K, V> copyOf(final Map<K, V> m) {
- return orderedCopyOf(m);
- }
-
public static <K, V> MutableOffsetMap<K, V> orderedCopyOf(final Map<K, V> m) {
if (m instanceof Ordered) {
return ((Ordered<K, V>) m).clone();
return new Unordered<>(m);
}
- /**
- * @deprecated Use {@link #ordered()} or {@link #unordered()} instead.
- */
- @Deprecated
- public static <K, V> MutableOffsetMap<K, V> of() {
- return ordered();
- }
-
public static <K, V> MutableOffsetMap<K, V> ordered() {
return new MutableOffsetMap.Ordered<>();
}