Class ImmutableMapValue<K extends CelValue,​V extends CelValue>

  • All Implemented Interfaces:
    SelectableValue<K>, java.util.Map<K,​V>

    @Immutable(containerOf={"K","V"})
    public final class ImmutableMapValue<K extends CelValue,​V extends CelValue>
    extends MapValue<K,​V>
    MapValue is an abstract representation of an immutable map containing CelValue as keys and values.
    • Method Detail

      • value

        public com.google.common.collect.ImmutableMap<K,​V> value()
        Description copied from class: CelValue
        The underlying value. This is typically the Java native value or a derived instance of CelValue (ex: an element in lists or key/value pair in maps).
        Specified by:
        value in class MapValue<K extends CelValue,​V extends CelValue>
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • containsKey

        public boolean containsKey​(java.lang.Object key)
      • containsValue

        public boolean containsValue​(java.lang.Object val)
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map<K extends CelValue,​V extends CelValue>
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Map<K extends CelValue,​V extends CelValue>
        Overrides:
        equals in class java.lang.Object
      • keySet

        public java.util.Set<K> keySet()
      • values

        public java.util.Collection<V> values()
      • entrySet

        public java.util.Set<java.util.Map.Entry<K,​V>> entrySet()