Class Internals.BooleanMap<T>

  • All Implemented Interfaces:
    java.util.Map<java.lang.Boolean,​T>
    Enclosing interface:
    Internals

    public static final class Internals.BooleanMap<T>
    extends java.util.AbstractMap<java.lang.Boolean,​T>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) T falseValue  
      (package private) T trueValue  
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanMap​(T trueValue, T falseValue)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(java.lang.Object key)  
      java.util.Set<java.util.Map.Entry<java.lang.Boolean,​T>> entrySet()  
      T get​(java.lang.Object key)  
      (package private) static <A,​R>
      Internals.PartialCollector<Internals.BooleanMap<A>,​java.util.Map<java.lang.Boolean,​R>>
      partialCollector​(java.util.stream.Collector<?,​A,​R> downstream)  
      int size()  
      • Methods inherited from class java.util.AbstractMap

        clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Field Detail

      • trueValue

        T trueValue
      • falseValue

        T falseValue
    • Constructor Detail

      • BooleanMap

        BooleanMap​(T trueValue,
                   T falseValue)
    • Method Detail

      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<java.lang.Boolean,​T>
        Overrides:
        containsKey in class java.util.AbstractMap<java.lang.Boolean,​T>
      • get

        public T get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<java.lang.Boolean,​T>
        Overrides:
        get in class java.util.AbstractMap<java.lang.Boolean,​T>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.Boolean,​T>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.Boolean,​T>
        Specified by:
        entrySet in class java.util.AbstractMap<java.lang.Boolean,​T>
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<java.lang.Boolean,​T>
        Overrides:
        size in class java.util.AbstractMap<java.lang.Boolean,​T>