Package com.xebialabs.xlrelease.utils
Class FixedSizeMap<A,B>
- java.lang.Object
-
- com.xebialabs.xlrelease.utils.FixedSizeMap<A,B>
-
public class FixedSizeMap<A,B> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FixedSizeMap(scala.collection.mutable.Map<A,B> _entries, int _size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(scala.Tuple2<A,B> entry)voidclear()static <A,B>
FixedSizeMap<A,B>empty(int size)scala.collection.immutable.Map<A,B>entries()scala.Option<B>get(A key)booleanisEmpty()scala.collection.immutable.Set<A>keySet()intmaxSize()booleannonEmpty()scala.Option<B>remove(A key)booleanresize(int newSize)intsize()booleanupdate(scala.Tuple2<A,B> entry)scala.collection.immutable.Seq<B>values()
-
-
-
Method Detail
-
empty
public static <A,B> FixedSizeMap<A,B> empty(int size)
-
keySet
public scala.collection.immutable.Set<A> keySet()
-
values
public scala.collection.immutable.Seq<B> values()
-
isEmpty
public boolean isEmpty()
-
nonEmpty
public boolean nonEmpty()
-
size
public int size()
-
maxSize
public int maxSize()
-
clear
public void clear()
-
resize
public boolean resize(int newSize)
-
-