@Test public void testListDifferentOrder() { WildcardPermission p6 = new WildcardPermission("one,two:three,four"); WildcardPermission p6DiffOrder = new WildcardPermission("two,one:four,three"); assertTrue(p6.equals(p6DiffOrder)); }
public boolean equals(Object o) { if (o instanceof WildcardPermission) { WildcardPermission wp = (WildcardPermission) o; return parts.equals(wp.parts); } return false; }
WildcardPermission implements Permission, Serializable { public boolean equals(Object o) { if (o instanceof WildcardPermission) { WildcardPermission wp = (WildcardPermission) o; return parts.equals(wp.parts); } return false; } }
WildcardPermission implements Permission, Serializable { public boolean equals(Object o) { if (o instanceof WildcardPermission) { WildcardPermission wp = (WildcardPermission) o; return parts.equals(wp.parts); } return false; } protected  WildcardPermission();  WildcardPermission(String wildcardString);  WildcardPermission(String wildcardString, boolean caseSensitive); }
WildcardPermission implements Permission, Serializable { public boolean equals(Object o) { if (o instanceof WildcardPermission) { WildcardPermission wp = (WildcardPermission) o; return parts.equals(wp.parts); } return false; } protected  WildcardPermission();  WildcardPermission(String wildcardString);  WildcardPermission(String wildcardString, boolean caseSensitive); boolean implies(Permission p); String toString(); boolean equals(Object o); int hashCode(); }
WildcardPermission implements Permission, Serializable { public boolean equals(Object o) { if (o instanceof WildcardPermission) { WildcardPermission wp = (WildcardPermission) o; return parts.equals(wp.parts); } return false; } protected  WildcardPermission();  WildcardPermission(String wildcardString);  WildcardPermission(String wildcardString, boolean caseSensitive); boolean implies(Permission p); String toString(); boolean equals(Object o); int hashCode();  }