/**
  * Returns an unmodifiable view of the underlying map's key set.
  *
  * @return the set of unique elements in this bag
  */
 public virtual java.util.Set <Object> uniqueSet()
 {
     if (uniqueSetJ == null)
     {
         uniqueSetJ = UnmodifiableSet.decorate(map.keySet());
     }
     return(uniqueSetJ);
 }
Esempio n. 2
0
 public override java.util.Set <Object> keySet()
 {
     java.util.Set <Object> set = base.keySet();
     return(UnmodifiableSet.decorate(set));
 }
 public new java.util.Set <Object> entrySet()
 {
     java.util.Set <Object> set = (java.util.Set <Object>)map.entrySet();
     // unmodifiable set will still allow modification via Map.Entry objects
     return(UnmodifiableSet.decorate(set));
 }
 /**
  * Get the keys for this BeanMap.
  * <p>
  * Write-only properties are <b>not</b> included in the returned set of
  * property names, although it is possible to set their value and to get
  * their type.
  *
  * @return BeanMap keys.  The Set returned by this method is not
  *        modifiable.
  */
 public override java.util.Set <Object> keySet()
 {
     return(UnmodifiableSet.decorate(readMethods.keySet()));
 }
 /**
  * Gets a Set of MapEntry objects that are the mappings for this BeanMap.
  * <p>
  * Each MapEntry can be set but not removed.
  *
  * @return the unmodifiable set of mappings
  */
 public new java.util.Set <Object> entrySet()
 {
     return(UnmodifiableSet.decorate(new IAC_EntrySet(this)));
 }
 /**
  * Returns an unmodifiable set backed by the given set.
  * <p>
  * This method uses the implementation in the decorators subpackage.
  *
  * @param set  the set to make unmodifiable, must not be null
  * @return an unmodifiable set backed by the given set
  * @throws IllegalArgumentException  if the set is null
  */
 public static java.util.Set <Object> unmodifiableSet(java.util.Set <Object> set)
 {
     return(UnmodifiableSet.decorate(set));
 }
Esempio n. 7
0
        //-----------------------------------------------------------------------

        /**
         * Gets an unmodifiable view as a Set.
         *
         * @return an unmodifiable set view
         */
        public virtual java.util.Set <Object> asSet()
        {
            return(UnmodifiableSet.decorate(setJ));
        }
Esempio n. 8
0
 public new java.util.Set <Object> entrySet()
 {
     java.util.Set <Object> set = (java.util.Set <Object>)map.entrySet();
     return(UnmodifiableSet.decorate(set));
 }
Esempio n. 9
0
 public override java.util.Set <Object> uniqueSet()
 {
     java.util.Set <Object> set = getBag().uniqueSet();
     return(UnmodifiableSet.decorate(set));
 }
 /**
  * Returns an unmodifiable view of the underlying map's key set.
  *
  * @return the set of unique elements in this bag
  */
 public virtual java.util.Set <Object> uniqueSet()
 {
     return(UnmodifiableSet.decorate(_map.keySet()));
 }