Class ValueUtils.MapEntryImpl

  • All Implemented Interfaces:
    java.lang.Comparable<java.util.Map.Entry<?,​?>>, java.util.Map.Entry
    Enclosing class:
    ValueUtils

    private static final class ValueUtils.MapEntryImpl
    extends java.lang.Object
    implements java.util.Map.Entry, java.lang.Comparable<java.util.Map.Entry<?,​?>>
    Comparable map entry using the service reference to compare.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object key  
      private org.osgi.framework.ServiceReference<?> ref  
      private java.lang.Object value  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapEntryImpl​(java.lang.Object key, java.lang.Object value, org.osgi.framework.ServiceReference<?> ref)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.util.Map.Entry<?,​?> o)  
      java.lang.Object getKey()  
      java.lang.Object getValue()  
      java.lang.Object setValue​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map.Entry

        equals, hashCode
    • Field Detail

      • key

        private final java.lang.Object key
      • value

        private final java.lang.Object value
      • ref

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

      • MapEntryImpl

        public MapEntryImpl​(java.lang.Object key,
                            java.lang.Object value,
                            org.osgi.framework.ServiceReference<?> ref)
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        Specified by:
        getKey in interface java.util.Map.Entry
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface java.util.Map.Entry
      • setValue

        public java.lang.Object setValue​(java.lang.Object value)
        Specified by:
        setValue in interface java.util.Map.Entry
      • compareTo

        public int compareTo​(java.util.Map.Entry<?,​?> o)
        Specified by:
        compareTo in interface java.lang.Comparable<java.util.Map.Entry<?,​?>>