org.openide.modules
Class SpecificationVersion
java.lang.Object
|
+--org.openide.modules.SpecificationVersion
- All Implemented Interfaces:
- Comparable
- public final class SpecificationVersion
- extends Object
- implements Comparable
Utility class representing a specification version.
- Since:
- 1.24
SpecificationVersion
public SpecificationVersion(String version)
throws NumberFormatException
- Parse from string. Must be Dewey-decimal.
compareTo
public int compareTo(Object o)
- Perform a Dewey-decimal comparison.
- Specified by:
compareTo
in interface Comparable
equals
public boolean equals(Object o)
- Overridden to compare contents.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overridden to hash by contents.
- Overrides:
hashCode
in class Object
toString
public String toString()
- String representation (Dewey-decimal).
- Overrides:
toString
in class Object
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.