/** * Returns whether two icon groups are equal. * * @param o2 The object to check against. * @return Whether <code>o2</code> represents the same icons as this icon * group. */ @Override public boolean equals(Object o2) { if (o2 instanceof IconGroup) { IconGroup ig2 = (IconGroup)o2; if (ig2.getName().equals(getName()) && separateLargeIcons==ig2.hasSeparateLargeIcons()) { if (separateLargeIcons) { if (!largeIconSubDir.equals(ig2.largeIconSubDir)) { return false; } } return path.equals(ig2.path); } // If we got here, separateLargeIcons values weren't equal. } return false; }
/** * Returns whether two icon groups are equal. * * @param o2 The object to check against. * @return Whether <code>o2</code> represents the same icons as this icon * group. */ @Override public boolean equals(Object o2) { if (o2 instanceof IconGroup) { IconGroup ig2 = (IconGroup)o2; if (ig2.getName().equals(getName()) && separateLargeIcons==ig2.hasSeparateLargeIcons()) { if (separateLargeIcons) { if (!largeIconSubDir.equals(ig2.largeIconSubDir)) { return false; } } return path.equals(ig2.path); } // If we got here, separateLargeIcons values weren't equal. } return false; }
/** * Returns whether two icon groups are equal. * * @param o2 The object to check against. * @return Whether <code>o2</code> represents the same icons as this icon * group. */ public boolean equals(Object o2) { if (o2!=null && o2 instanceof IconGroup) { IconGroup ig2 = (IconGroup)o2; if (ig2.getName().equals(getName()) && separateLargeIcons==ig2.hasSeparateLargeIcons()) { if (separateLargeIcons) { if (!largeIconSubDir.equals(ig2.largeIconSubDir)) return false; } return path.equals(ig2.path); } // If we got here, separateLargeIcons values weren't equal. } return false; }
/** * Returns whether two icon groups are equal. * * @param o2 The object to check against. * @return Whether <code>o2</code> represents the same icons as this icon * group. */ public boolean equals(Object o2) { if (o2!=null && o2 instanceof IconGroup) { IconGroup ig2 = (IconGroup)o2; if (ig2.getName().equals(getName()) && separateLargeIcons==ig2.hasSeparateLargeIcons()) { if (separateLargeIcons) { if (!largeIconSubDir.equals(ig2.largeIconSubDir)) return false; } return path.equals(ig2.path); } // If we got here, separateLargeIcons values weren't equal. } return false; }