Class DimensionalMap<VALUE>


  • public class DimensionalMap<VALUE>
    extends java.lang.Object
    A map which may return different values depending on the values given in a context supplied with the key on all operations.

    Dimensional maps are immutable and created through a DimensionalMap.Builder

    Author:
    bratseth
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.util.Map.Entry<com.yahoo.processing.request.CompoundName,​DimensionalValue<VALUE>>> entrySet()
      Returns the set of dimensional entries across all contexts.
      VALUE get​(com.yahoo.processing.request.CompoundName key, java.util.Map<java.lang.String,​java.lang.String> context)
      Returns the value for this key matching a context, or null if none
      boolean isEmpty()
      Returns true if this is empty for all contexts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public VALUE get​(com.yahoo.processing.request.CompoundName key,
                         java.util.Map<java.lang.String,​java.lang.String> context)
        Returns the value for this key matching a context, or null if none
      • entrySet

        public java.util.Set<java.util.Map.Entry<com.yahoo.processing.request.CompoundName,​DimensionalValue<VALUE>>> entrySet()
        Returns the set of dimensional entries across all contexts.
      • isEmpty

        public boolean isEmpty()
        Returns true if this is empty for all contexts.