Beispiel #1
0
 public MapIterator mapIterator()
 {
     if (map is IterableMap)
     {
         MapIterator it = ((IterableMap)map).mapIterator();
         return(UnmodifiableMapIterator.decorate(it));
     }
     else
     {
         MapIterator it = new EntrySetMapIterator(map);
         return(UnmodifiableMapIterator.decorate(it));
     }
 }
 /**
  * Gets an immutable version of a {@link MapIterator}. The returned object
  * will always throw an {@link UnsupportedOperationException} for
  * the {@link Iterator#remove}, {@link MapIterator#setValue(Object)} methods.
  *
  * @param mapIterator  the iterator to make immutable
  * @return an immutable version of the iterator
  */
 public static MapIterator unmodifiableMapIterator(MapIterator mapIterator)
 {
     return(UnmodifiableMapIterator.decorate(mapIterator));
 }
        public override MapIterator mapIterator()
        {
            MapIterator it = getBidiMap().mapIterator();

            return(UnmodifiableMapIterator.decorate(it));
        }