/** * <p>Return a <code>Map.Entry</code> for the specified key value, if it * is present; otherwise, return <code>null</code>.</p> * * @param key Attribute key or property name */ private Entry entry(Object key) { if (containsKey(key)) { return (new MapEntryImpl(key, get(key))); } else { return (null); } }
/** * Instantiate ActionContextBase, wrapping a default ContextBase * instance. */ public ActionContextBase() { this(new ContextBase()); }
/** * Default, no argument constructor. */ public ContextBase() { super(); initialize(); }
/** * <p>Construct a {@link Chain} configured with the specified * {@link Command}.</p> * * @param command The {@link Command} to be configured * * @exception IllegalArgumentException if <code>command</code> * is <code>null</code> */ public ChainBase(Command command) { addCommand(command); }
public Object setValue(Object value) { Object previous = this.value; ContextBase.this.put(this.key, value); this.value = value; return (previous); }
/** * <p>Return an <code>Iterator</code> over the set of values in this * <code>Map</code>.</p> */ private Iterator valuesIterator() { return (new ValuesIterator()); }
/** * <p>Override the default <code>Map</code> behavior to return a * <code>Set</code> that meets the specified default behavior except * for attempts to remove the key for a property of the {@link Context} * implementation class, which will throw * <code>UnsupportedOperationException</code>.</p> * * @return Set of entries in the Context. */ public Set entrySet() { return (new EntrySetImpl()); }
/** * <p>Return an <code>Iterator</code> over the set of <code>Map.Entry</code> * objects representing our key-value pairs.</p> */ private Iterator entriesIterator() { return (new EntrySetIterator()); }
/** * <p>Override the default <code>Map</code> behavior to return a * <code>Collection</code> that meets the specified default behavior except * for attempts to remove the key for a property of the {@link Context} * implementation class, which will throw * <code>UnsupportedOperationException</code>.</p> * * @return The collection of values in this Context. */ public Collection values() { return (new ValuesImpl()); }
public boolean isEmpty() { return (ContextBase.this.isEmpty()); }
public int size() { return (ContextBase.this.size()); }
/** * <p>Return a <code>Map.Entry</code> for the specified key value, if it * is present; otherwise, return <code>null</code>.</p> * * @param key Attribute key or property name */ private Entry entry(Object key) { if (containsKey(key)) { return (new MapEntryImpl(key, get(key))); } else { return (null); } }
/** * <p>Construct a {@link Chain} configured with the specified * {@link Command}.</p> * * @param command The {@link Command} to be configured * * @exception IllegalArgumentException if <code>command</code> * is <code>null</code> */ public ChainBase(Command command) { addCommand(command); }
public Object setValue(Object value) { Object previous = this.value; ContextBase.this.put(this.key, value); this.value = value; return (previous); }
/** * <p>Return an <code>Iterator</code> over the set of values in this * <code>Map</code>.</p> */ private Iterator valuesIterator() { return (new ValuesIterator()); }
/** * <p>Override the default <code>Map</code> behavior to return a * <code>Set</code> that meets the specified default behavior except * for attempts to remove the key for a property of the {@link Context} * implementation class, which will throw * <code>UnsupportedOperationException</code>.</p> * * @return Set of entries in the Context. */ public Set entrySet() { return (new EntrySetImpl()); }
/** * <p>Return an <code>Iterator</code> over the set of <code>Map.Entry</code> * objects representing our key-value pairs.</p> */ private Iterator entriesIterator() { return (new EntrySetIterator()); }
/** * <p>Return a <code>Map.Entry</code> for the specified key value, if it * is present; otherwise, return <code>null</code>.</p> * * @param key Attribute key or property name */ private Map.Entry entry(Object key) { if (containsKey(key)) { return (new MapEntryImpl(key, get(key))); } else { return (null); } }
/** * <p>Construct a {@link Chain} configured with the specified * {@link Command}.</p> * * @param command The {@link Command} to be configured * * @exception IllegalArgumentException if <code>command</code> * is <code>null</code> */ public ChainBase(Command command) { addCommand(command); }
/** * <p>Return an <code>Iterator</code> over the set of values in this * <code>Map</code>.</p> */ private Iterator valuesIterator() { return (new ValuesIterator()); }