@Test public void labelNamesAreCaseInsensitive() { final CloudnamePath one = new CloudnamePath(new String[] { "FirstSecond" }); final CloudnamePath two = new CloudnamePath(new String[] { "fIRSTsECOND" }); assertTrue("Label names aren't case sensitive", one.equals(two)); }
@Override public boolean equals(final Object other) { if (other == null || !(other instanceof CloudnamePath)) { return false; } final CloudnamePath otherPath = (CloudnamePath) other; return Arrays.deepEquals(otherPath.pathElements, pathElements); }
CloudnamePath { @Override public boolean equals(final Object other) { if (other == null || !(other instanceof CloudnamePath)) { return false; } final CloudnamePath otherPath = (CloudnamePath) other; return Arrays.deepEquals(otherPath.pathElements, pathElements); } }
CloudnamePath { @Override public boolean equals(final Object other) { if (other == null || !(other instanceof CloudnamePath)) { return false; } final CloudnamePath otherPath = (CloudnamePath) other; return Arrays.deepEquals(otherPath.pathElements, pathElements); } CloudnamePath(final String[] pathElements);  CloudnamePath(final CloudnamePath path, final String additionalElement); }
CloudnamePath { @Override public boolean equals(final Object other) { if (other == null || !(other instanceof CloudnamePath)) { return false; } final CloudnamePath otherPath = (CloudnamePath) other; return Arrays.deepEquals(otherPath.pathElements, pathElements); } CloudnamePath(final String[] pathElements);  CloudnamePath(final CloudnamePath path, final String additionalElement); static boolean isValidPathElementName(final String name); int length(); String join(final char separator); String get(final int index); boolean isSubpathOf(final CloudnamePath other); CloudnamePath getParent(); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString(); }
CloudnamePath { @Override public boolean equals(final Object other) { if (other == null || !(other instanceof CloudnamePath)) { return false; } final CloudnamePath otherPath = (CloudnamePath) other; return Arrays.deepEquals(otherPath.pathElements, pathElements); } CloudnamePath(final String[] pathElements);  CloudnamePath(final CloudnamePath path, final String additionalElement); static boolean isValidPathElementName(final String name); int length(); String join(final char separator); String get(final int index); boolean isSubpathOf(final CloudnamePath other); CloudnamePath getParent(); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString();  }