summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/javax/print/attribute/EnumSyntax.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/javax/print/attribute/EnumSyntax.java')
-rw-r--r--libjava/classpath/javax/print/attribute/EnumSyntax.java50
1 files changed, 25 insertions, 25 deletions
diff --git a/libjava/classpath/javax/print/attribute/EnumSyntax.java b/libjava/classpath/javax/print/attribute/EnumSyntax.java
index 9a5e62d458f..e848dfcc334 100644
--- a/libjava/classpath/javax/print/attribute/EnumSyntax.java
+++ b/libjava/classpath/javax/print/attribute/EnumSyntax.java
@@ -1,4 +1,4 @@
-/* EnumSyntax.java --
+/* EnumSyntax.java --
Copyright (C) 2003, 2005 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -43,16 +43,16 @@ import java.io.Serializable;
/**
* <code>EnumSyntax</code> is the abstract base class of all enumeration
- * classes in the Java Print Service API.
+ * classes in the Java Print Service API.
* <p>
- * Every enumeration class which extends from EnumSyntax provides several
+ * Every enumeration class which extends from EnumSyntax provides several
* enumeration objects as singletons of its class.
* </p>
* <p>
* Notes for implementing subclasses:
* <ul>
* <li>
- * The values of all enumeration singelton instances have to be in a
+ * The values of all enumeration singelton instances have to be in a
* sequence which may start at any value. See: {@link #getOffset()}
* </li>
* <li>
@@ -61,50 +61,50 @@ import java.io.Serializable;
* </li>
* </ul>
* </p>
- * Example:
- * <pre>
+ * Example:
+ * <pre>
* public class PrinterState extends EnumSyntax
* {
* public static final PrinterState IDLE = new PrinterState(1);
* public static final PrinterState PROCESSING = new PrinterState(2);
* public static final PrinterState STOPPED = new PrinterState(3);
- *
+ *
* protected PrinterState(int value)
* {
* super(value);
* }
- *
+ *
* // Overridden because values start not at zero !
* protected int getOffset()
* {
* return 1;
* }
- *
- * private static final String[] stringTable = { "idle", "processing",
+ *
+ * private static final String[] stringTable = { "idle", "processing",
* "stopped" };
- *
+ *
* protected String[] getStringTable()
* {
* return stringTable;
* }
- *
- * private static final PrinterState[] enumValueTable = { IDLE,
+ *
+ * private static final PrinterState[] enumValueTable = { IDLE,
* PROCESSING, STOPPED};
- *
+ *
* protected EnumSyntax[] getEnumValueTable()
* {
* return enumValueTable;
* }
* }
* </pre>
- *
+ *
* @author Michael Koch (konqueror@gmx.de)
* @author Wolfgang Baer (WBaer@gmx.de)
*/
public abstract class EnumSyntax implements Cloneable, Serializable
{
private static final long serialVersionUID = -2739521845085831642L;
-
+
private int value;
/**
@@ -146,7 +146,7 @@ public abstract class EnumSyntax implements Cloneable, Serializable
}
/**
- * Returns the hashcode for this object.
+ * Returns the hashcode for this object.
* The hashcode is the value of this enumeration object.
*
* @return The hashcode.
@@ -173,7 +173,7 @@ public abstract class EnumSyntax implements Cloneable, Serializable
&& index >= 0
&& index < table.length)
return table[index];
-
+
return "" + value;
}
@@ -193,12 +193,12 @@ public abstract class EnumSyntax implements Cloneable, Serializable
/**
* Needed for singelton semantics during deserialisation.
- *
+ *
* Subclasses must not override this class. Subclasses have to override
- * <code>getEnumValueTable()</code> and should override
+ * <code>getEnumValueTable()</code> and should override
* <code>getStringTable()</code> for correct serialization.
- *
- * @return The Object at index <code>value - getOffset()</code>
+ *
+ * @return The Object at index <code>value - getOffset()</code>
* in getEnumValueTable.
* @throws ObjectStreamException if getEnumValueTable() returns null.
*/
@@ -227,10 +227,10 @@ public abstract class EnumSyntax implements Cloneable, Serializable
}
/**
- * Returns the lowest used value by the enumerations of this class.
- *
+ * Returns the lowest used value by the enumerations of this class.
+ *
* The default implementation returns 0. This is enough if enumerations
- * start with a zero value. Otherwise subclasses need to override this
+ * start with a zero value. Otherwise subclasses need to override this
* method for serialization and return the lowest value they use.
* .
* @return The lowest used value used.
OpenPOWER on IntegriCloud