站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.0

SpecificationVersion (NetBeans Modules API) - NetBeans API Javadoc 5.5.0

org.openide.modules 6.5.22

org.openide.modules
Class SpecificationVersion

java.lang.Object
  extended by 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

Constructor Summary
SpecificationVersion(String version)
          Parse from string.
 
Method Summary
 int compareTo(Object o)
          Perform a Dewey-decimal comparison.
 boolean equals(Object o)
          Overridden to compare contents.
 int hashCode()
          Overridden to hash by contents.
 String toString()
          String representation (Dewey-decimal).
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpecificationVersion

public SpecificationVersion(String version)
                     throws NumberFormatException
Parse from string. Must be Dewey-decimal.

Throws:
NumberFormatException
Method Detail

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

org.openide.modules 6.5.22

Built on May 28 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.