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()))); }
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); }
/* * {@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()); }
public K getKey() { return(mapEntry.getKey()); }
/** * Constructs a new instance by an entry * * @param entry * the entry */ public SimpleImmutableEntry(MapNS.Entry <K, V> entry) { key = entry.getKey(); value = entry.getValue(); }
public K get(MapNS.Entry <K, V> entry) { return(entry.getKey()); }