org.sonatype.aether.test.util.impl
Class StubVersion

java.lang.Object
  extended by org.sonatype.aether.test.util.impl.StubVersion
All Implemented Interfaces:
Comparable<Version>, Version

public final class StubVersion
extends Object
implements Version

Version ordering by String.compareToIgnoreCase(String).

Author:
Benjamin Hanzelmann

Constructor Summary
StubVersion(String version)
           
 
Method Summary
 int compareTo(Version o)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
          Gets the original string representation of the version.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StubVersion

public StubVersion(String version)
Method Detail

compareTo

public int compareTo(Version o)
Specified by:
compareTo in interface Comparable<Version>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Description copied from interface: Version
Gets the original string representation of the version.

Specified by:
toString in interface Version
Overrides:
toString in class Object
Returns:
The string representation of the version.


Copyright © 2010-2013. All Rights Reserved.