/** * Determine whether this permission has a name equal to the given name. * * @param name the name to check * @return {@code true} if this permission's name is equal to the given name, {@code false} otherwise */ public boolean nameEquals(final String name) { return getName().equals(name); }
/** * Get the hash code of the name. The default implementation returns {@code getName().hashCode()}. * * @return the hash code of the name */ protected int nameHashCode() { return getName().hashCode(); }
/** * Determine whether this permission implies the name of the given permission. * * @param permission the permission whose name is to be checked * @return {@code true} if this permission's name implies the given name, {@code false} otherwise */ public boolean impliesName(final This permission) { return permission != null && impliesName(permission.getName()); }
/** * Determine whether this permission has a name equal to the name of the given permission. * * @param permission the permission whose name is to be checked * @return {@code true} if this permission's name is equal to the given permission's name, {@code false} otherwise */ public final boolean nameEquals(final This permission) { return permission != null && nameEquals(permission.getName()); }
/** * Get the hash code of the name. The default implementation returns {@code getName().hashCode()}. * * @return the hash code of the name */ protected int nameHashCode() { return getName().hashCode(); }
/** * Determine whether this permission has a name equal to the given name. * * @param name the name to check * @return {@code true} if this permission's name is equal to the given name, {@code false} otherwise */ public boolean nameEquals(final String name) { return getName().equals(name); }
/** * Determine whether this permission has a name equal to the given name. * * @param name the name to check * @return {@code true} if this permission's name is equal to the given name, {@code false} otherwise */ public boolean nameEquals(final String name) { return getName().equals(name); }
/** * Determine whether this permission has a name equal to the given name. * * @param name the name to check * @return {@code true} if this permission's name is equal to the given name, {@code false} otherwise */ public boolean nameEquals(final String name) { return getName().equals(name); }
/** * Get the hash code of the name. The default implementation returns {@code getName().hashCode()}. * * @return the hash code of the name */ protected int nameHashCode() { return getName().hashCode(); }
/** * Get the hash code of the name. The default implementation returns {@code getName().hashCode()}. * * @return the hash code of the name */ protected int nameHashCode() { return getName().hashCode(); }
/** * Determine whether this permission implies the name of the given permission. * * @param permission the permission whose name is to be checked * @return {@code true} if this permission's name implies the given name, {@code false} otherwise */ public boolean impliesName(final This permission) { return permission != null && impliesName(permission.getName()); }
/** * Determine whether this permission has a name equal to the name of the given permission. * * @param permission the permission whose name is to be checked * @return {@code true} if this permission's name is equal to the given permission's name, {@code false} otherwise */ public final boolean nameEquals(final This permission) { return permission != null && nameEquals(permission.getName()); }
/** * Determine whether this permission has a name equal to the name of the given permission. * * @param permission the permission whose name is to be checked * @return {@code true} if this permission's name is equal to the given permission's name, {@code false} otherwise */ public final boolean nameEquals(final This permission) { return permission != null && nameEquals(permission.getName()); }
/** * Determine whether this permission implies the name of the given permission. * * @param permission the permission whose name is to be checked * @return {@code true} if this permission's name implies the given name, {@code false} otherwise */ public boolean impliesName(final This permission) { return permission != null && impliesName(permission.getName()); }
/** * Determine whether this permission implies the name of the given permission. * * @param permission the permission whose name is to be checked * @return {@code true} if this permission's name implies the given name, {@code false} otherwise */ public boolean impliesName(final This permission) { return permission != null && impliesName(permission.getName()); }
/** * Determine whether this permission has a name equal to the name of the given permission. * * @param permission the permission whose name is to be checked * @return {@code true} if this permission's name is equal to the given permission's name, {@code false} otherwise */ public final boolean nameEquals(final This permission) { return permission != null && nameEquals(permission.getName()); }