/** * Determine whether this permission implies the given name. * * @param name the name to check * @return {@code true} if this permission's name implies the given name, {@code false} otherwise */ public boolean impliesName(final String name) { return nameEquals("*") || nameEquals(name); }
public boolean equals(final This other) { return other != null && nameEquals(other); }
/** * Determine whether this permission has a name equal to the name of the given permission. If the given permission * is of a different type than this permission, {@code false} is returned. * * @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 */ @SuppressWarnings("unchecked") public final boolean nameEquals(final Permission permission) { return permission != null && permission.getClass() == getClass() && nameEquals((This) permission); }
/** * 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 given name. * * @param name the name to check * @return {@code true} if this permission's name implies the given name, {@code false} otherwise */ public boolean impliesName(final String name) { return nameEquals("*") || nameEquals(name); }
/** * Determine whether this permission implies the given name. * * @param name the name to check * @return {@code true} if this permission's name implies the given name, {@code false} otherwise */ public boolean impliesName(final String name) { return nameEquals("*") || nameEquals(name); }
/** * Determine whether this permission implies the given name. * * @param name the name to check * @return {@code true} if this permission's name implies the given name, {@code false} otherwise */ public boolean impliesName(final String name) { return nameEquals("*") || nameEquals(name); }
public boolean equals(final This other) { return other != null && nameEquals(other); }
public boolean equals(final This other) { return other != null && nameEquals(other); }
public boolean equals(final This other) { return other != null && nameEquals(other); }
/** * Determine whether this permission has a name equal to the name of the given permission. If the given permission * is of a different type than this permission, {@code false} is returned. * * @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 */ @SuppressWarnings("unchecked") public final boolean nameEquals(final Permission permission) { return permission != null && permission.getClass() == getClass() && nameEquals((This) permission); }
/** * Determine whether this permission has a name equal to the name of the given permission. If the given permission * is of a different type than this permission, {@code false} is returned. * * @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 */ @SuppressWarnings("unchecked") public final boolean nameEquals(final Permission permission) { return permission != null && permission.getClass() == getClass() && nameEquals((This) permission); }
/** * Determine whether this permission has a name equal to the name of the given permission. If the given permission * is of a different type than this permission, {@code false} is returned. * * @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 */ @SuppressWarnings("unchecked") public final boolean nameEquals(final Permission permission) { return permission != null && permission.getClass() == getClass() && nameEquals((This) permission); }
/** * 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 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()); }