@Test public void testNameEndingInNumber() { VDBKey key = new VDBKey("a1", 1); VDBKey key1 = new VDBKey("a", 11); assertFalse(key.equals(key1)); }
public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof VDBKey)) { return false; } VDBKey other = (VDBKey)obj; return other.atMost == this.atMost && this.compareTo(other) == 0; }
VDBKey implements Serializable, Comparable<VDBKey> { public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof VDBKey)) { return false; } VDBKey other = (VDBKey)obj; return other.atMost == this.atMost && this.compareTo(other) == 0; } }
VDBKey implements Serializable, Comparable<VDBKey> { public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof VDBKey)) { return false; } VDBKey other = (VDBKey)obj; return other.atMost == this.atMost && this.compareTo(other) == 0; } VDBKey(String name, Object version); }
VDBKey implements Serializable, Comparable<VDBKey> { public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof VDBKey)) { return false; } VDBKey other = (VDBKey)obj; return other.atMost == this.atMost && this.compareTo(other) == 0; } VDBKey(String name, Object version); String getName(); String getVersion(); int hashCode(); boolean equals(Object obj); String toString(); @Override int compareTo(VDBKey o); boolean isAtMost(); boolean acceptsVerion(VDBKey key); String getSemanticVersion(); }
VDBKey implements Serializable, Comparable<VDBKey> { public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof VDBKey)) { return false; } VDBKey other = (VDBKey)obj; return other.atMost == this.atMost && this.compareTo(other) == 0; } VDBKey(String name, Object version); String getName(); String getVersion(); int hashCode(); boolean equals(Object obj); String toString(); @Override int compareTo(VDBKey o); boolean isAtMost(); boolean acceptsVerion(VDBKey key); String getSemanticVersion(); static Pattern NAME_PATTERN; }