org.pure4j.collections.TransientHashMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pure4j-core Show documentation
Show all versions of pure4j-core Show documentation
Pure Functional Programming Semantics For Java
package org.pure4j.collections;
import java.util.HashMap;
import java.util.Map;
public class TransientHashMap extends HashMap implements ITransientMap {
public TransientHashMap() {
super();
}
public TransientHashMap(int initialCapacity, float loadFactor) {
super(initialCapacity, loadFactor);
}
public TransientHashMap(int initialCapacity) {
super(initialCapacity);
}
public TransientHashMap(Map extends K, ? extends V> m) {
super(m);
}
@Override
public int count() {
return size();
}
@Override
public IPersistentMap persistent() {
return new PersistentHashMap(this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy