API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.print.attribute.standard. PrinterStateReasons View Source
Author(s)
Alan Kaminsky
Since
Version
Serial
Hierarchy
 Object
      AbstractMap
          HashMap
              PrinterStateReasons
Implements
 PrintServiceAttribute
Subclasses
Description
publicfinal class PrinterStateReasons
  Class PrinterStateReasons is a printing attribute class, a set of enumeration values, that provides additional information about the printer's current state, i.e., information that augments the value of the printer's PrinterState attribute.
See also:   
Constructors
public PrinterStateReasons ()
Construct a new, empty printer state reasons attribute; the underlying hash map has the default initial capacity and load factor.
public PrinterStateReasons (int initialCapacity)
  super a new, empty printer state reasons attribute; the underlying hash map has the given initial capacity and the default load factor.
public PrinterStateReasons (int initialCapacity, float loadFactor)
  Construct a new, empty printer state reasons attribute; the underlying hash map has the given initial capacity and load factor.
public PrinterStateReasons (Map<PrinterStateReason, Severity> map)
  Construct a new printer state reasons attribute that contains the same PrinterStateReason-to-Severity mappings as the given map.
Methods
Hide/Show inherited methods
public void clear () [Inherited From HashMap]
  Removes all of the mappings from this map.
public Object clone () [Inherited From HashMap]
  Returns a shallow copy of this HashMap instance: the keys and values themselves are not cloned.
public boolean containsKey (Object key) [Inherited From HashMap]
  Returns true if this map contains a mapping for the specified key.
public boolean containsValue (Object value) [Inherited From HashMap]
  Returns true if this map maps one or more keys to the specified value.
public Set<Entry< K, V>> entrySet () [Inherited From HashMap] [Specified in AbstractMap]
  Returns a Set view of the mappings contained in this map.
public boolean equals (Object o) [Inherited From AbstractMap]
  Compares the specified object with this map for equality.
public V get (Object key) [Inherited From HashMap]
  Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
publicfinal Class<Attribute> getCategory ()
  Get the printing attribute class which is to be used as the "category" for this printing attribute value.
publicfinal String getName ()
  Get the name of the category of which this attribute value is an instance.
public int hashCode () [Inherited From AbstractMap]
  Returns the hash code value for this map.
public boolean isEmpty () [Inherited From HashMap]
  Returns true if this map contains no key-value mappings.
public Set< K> keySet () [Inherited From HashMap]
  Returns a Set view of the keys contained in this map.
public Set<PrinterStateReason> printerStateReasonSet (Severity severity)
  Obtain an unmodifiable set view of the individual printer state reason attributes at the given severity level in this PrinterStateReasons attribute.
public V put ( K key, V value) [Inherited From HashMap]
  Associates the specified value with the specified key in this map.
public Severity put (PrinterStateReason reason, Severity severity)
  Adds the given printer state reason to this printer state reasons attribute, associating it with the given severity level.
public void putAll (Map<Object, Object> m) [Inherited From HashMap]
  Copies all of the mappings from the specified map to this map.
public V remove (Object key) [Inherited From HashMap]
  Removes the mapping for the specified key from this map if present.
public int size () [Inherited From HashMap]
  Returns the number of key-value mappings in this map.
public String toString () [Inherited From AbstractMap]
  Returns a string representation of this map.
public Collection< V> values () [Inherited From HashMap]
  Returns a Collection view of the values contained in this map.
Fields
Hide/Show inherited fields
Nested Classes
  AbstractMap.SimpleEntry
An Entry maintaining a key and a value.
  AbstractMap.SimpleImmutableEntry
An Entry maintaining an immutable key and value.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar