@Test public void test11newerThan8() throws Exception { final JavaSpecVersion eight = new JavaSpecVersion( "1.8" ); final JavaSpecVersion eleven = new JavaSpecVersion( "11" ); final boolean result = eleven.isNewerThan( eight ); assertTrue( result ); }
public boolean isNewerThan(JavaSpecVersion otherVersion) { return this.compareTo(otherVersion) > 0; }
JavaSpecVersion implements Comparable<JavaSpecVersion> { public boolean isNewerThan(JavaSpecVersion otherVersion) { return this.compareTo(otherVersion) > 0; } }
JavaSpecVersion implements Comparable<JavaSpecVersion> { public boolean isNewerThan(JavaSpecVersion otherVersion) { return this.compareTo(otherVersion) > 0; } JavaSpecVersion( int major, int minor );  JavaSpecVersion( CharSequence source ); }
JavaSpecVersion implements Comparable<JavaSpecVersion> { public boolean isNewerThan(JavaSpecVersion otherVersion) { return this.compareTo(otherVersion) > 0; } JavaSpecVersion( int major, int minor );  JavaSpecVersion( CharSequence source ); String getVersionString(); boolean isNewerThan(JavaSpecVersion otherVersion); @Override int compareTo(JavaSpecVersion that); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
JavaSpecVersion implements Comparable<JavaSpecVersion> { public boolean isNewerThan(JavaSpecVersion otherVersion) { return this.compareTo(otherVersion) > 0; } JavaSpecVersion( int major, int minor );  JavaSpecVersion( CharSequence source ); String getVersionString(); boolean isNewerThan(JavaSpecVersion otherVersion); @Override int compareTo(JavaSpecVersion that); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }