Class FixedSizeMap<A,B>

java.lang.Object
com.xebialabs.xlrelease.utils.FixedSizeMap<A,B>

public class FixedSizeMap<A,B> extends Object
  • Constructor Details

    • FixedSizeMap

      public FixedSizeMap(scala.collection.mutable.Map<A,B> _entries, int _size)
  • Method Details

    • empty

      public static <A, B> FixedSizeMap<A,B> empty(int size)
    • entries

      public scala.collection.immutable.Map<A,B> entries()
    • 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()
    • get

      public scala.Option<B> get(A key)
    • add

      public boolean add(scala.Tuple2<A,B> entry)
    • update

      public boolean update(scala.Tuple2<A,B> entry)
    • compute

      public boolean compute(scala.Tuple2<A,B> entry, BiFunction<B,B,B> mergeFn)
    • remove

      public scala.Option<B> remove(A key)
    • clear

      public void clear()
    • resize

      public boolean resize(int newSize)