Ejemplo n.º 1
0
            public override bool Equals(Object other)
            {
                if (!(other is MapNS.Entry <K, V>))
                {
                    return(false);
                }
                MapNS.Entry <Object, Object> entry = (MapNS.Entry <Object, Object>)other;
                Object key = base.get();

                return((key == null ? key == entry.getKey() : key.equals(entry
                                                                         .getKey())) &&
                       (valueJ == null ? null == entry.getValue() : valueJ
                        .equals(entry.getValue())));
            }
Ejemplo n.º 2
0
 public override bool Equals(Object obj)
 {
     if (this == obj)
     {
         return(true);
     }
     if (obj is MapNS.Entry <Object, Object> )
     {
         MapNS.Entry <Object, Object> entry = (MapNS.Entry <Object, Object>)obj;
         return((key == null ? entry.getKey() == null : key.equals(entry
                                                                   .getKey())) &&
                (value == null ? entry.getValue() == null : value
                 .equals(entry.getValue())));
     }
     return(false);
 }
Ejemplo n.º 3
0
 /*
  * {@inheritDoc}
  *
  * @see java.util.NavigableSet#pollLast()
  * @since 1.6
  */
 public E pollLast()
 {
     MapNS.Entry <E, Object> entry = backingMap.pollLastEntry();
     return((null == entry) ? default(E) : entry.getKey());
 }
Ejemplo n.º 4
0
 protected internal UnmodifiableMapEntry(MapNS.Entry <K, V> entry)
 {
     mapEntry = entry;
 }
Ejemplo n.º 5
0
 /**
  * Constructs a new instance by an entry
  *
  * @param entry
  *            the entry
  */
 public SimpleImmutableEntry(MapNS.Entry <K, V> entry)
 {
     key   = entry.getKey();
     value = entry.getValue();
 }
Ejemplo n.º 6
0
 public V get(MapNS.Entry <K, V> entry)
 {
     return(entry.getValue());
 }
Ejemplo n.º 7
0
 public K get(MapNS.Entry <K, V> entry)
 {
     return(entry.getKey());
 }
Ejemplo n.º 8
0
 public MapNS.Entry <K, V> get(MapNS.Entry <K, V> entry)
 {
     return(entry);
 }