Class FilterImpl.ServiceReferenceMap

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,​java.lang.Object>
    Enclosing class:
    FilterImpl

    private static final class FilterImpl.ServiceReferenceMap
    extends java.util.AbstractMap<java.lang.String,​java.lang.Object>
    implements java.util.Map<java.lang.String,​java.lang.Object>
    This Map is used for key lookup from a ServiceReference during filter evaluation. This Map implementation only supports the get operation using a String key as no other operations are used by the Filter implementation.
    • 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
      private org.osgi.framework.ServiceReference<?> reference  
    • Constructor Summary

      Constructors 
      Constructor Description
      ServiceReferenceMap​(org.osgi.framework.ServiceReference<?> reference)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()  
      java.lang.Object get​(java.lang.Object key)  
      • Methods inherited from class java.util.AbstractMap

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

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

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Field Detail

      • reference

        private final org.osgi.framework.ServiceReference<?> reference
    • Constructor Detail

      • ServiceReferenceMap

        ServiceReferenceMap​(org.osgi.framework.ServiceReference<?> reference)
    • Method Detail

      • get

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

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​java.lang.Object>
        Specified by:
        entrySet in class java.util.AbstractMap<java.lang.String,​java.lang.Object>