/** * Determine whether the actions of this permission are equal to the actions of given {@code permission}. If * the permission is not of the same type as this permission, {@code false} is returned. * * @param permission the permission whose actions are to be compared * @return {@code true} if the actions are equal, {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean actionsEquals(Permission permission) { return permission != null && permission.getClass() == getClass() && actionsEquals((This) permission); }
/** * Determine whether this permission is equal to another permission. Returns {@code true} if * both {@link #actionsEquals(AbstractActionPermission)} and {@link #nameEquals(AbstractNamedPermission)} * return {@code true}. * * @param permission the other permission * @return {@code true} if this permission implies the other; {@code false} otherwise */ public final boolean equals(final This permission) { return super.equals(permission) && actionsEquals(permission); }
/** * Determine whether the actions of this permission are equal to the actions of given {@code permission}. If * the permission is not of the same type as this permission, {@code false} is returned. * * @param permission the permission whose actions are to be compared * @return {@code true} if the actions are equal, {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean actionsEquals(Permission permission) { return permission != null && permission.getClass() == getClass() && actionsEquals((This) permission); }
/** * Determine whether the actions of this permission are equal to the actions of given {@code permission}. If * the permission is not of the same type as this permission, {@code false} is returned. * * @param permission the permission whose actions are to be compared * @return {@code true} if the actions are equal, {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean actionsEquals(Permission permission) { return permission != null && permission.getClass() == getClass() && actionsEquals((This) permission); }
/** * Determine whether the actions of this permission are equal to the actions of given {@code permission}. If * the permission is not of the same type as this permission, {@code false} is returned. * * @param permission the permission whose actions are to be compared * @return {@code true} if the actions are equal, {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean actionsEquals(Permission permission) { return permission != null && permission.getClass() == getClass() && actionsEquals((This) permission); }
/** * Determine whether this permission is equal to another permission. Returns {@code true} if * both {@link #actionsEquals(AbstractActionPermission)} and {@link #nameEquals(AbstractNamedPermission)} * return {@code true}. * * @param permission the other permission * @return {@code true} if this permission implies the other; {@code false} otherwise */ public final boolean equals(final This permission) { return super.equals(permission) && actionsEquals(permission); }
/** * Determine whether this permission is equal to another permission. Returns {@code true} if * both {@link #actionsEquals(AbstractActionPermission)} and {@link #nameEquals(AbstractNamedPermission)} * return {@code true}. * * @param permission the other permission * @return {@code true} if this permission implies the other; {@code false} otherwise */ public final boolean equals(final This permission) { return super.equals(permission) && actionsEquals(permission); }
/** * Determine whether this permission is equal to another permission. Returns {@code true} if * both {@link #actionsEquals(AbstractActionPermission)} and {@link #nameEquals(AbstractNamedPermission)} * return {@code true}. * * @param permission the other permission * @return {@code true} if this permission implies the other; {@code false} otherwise */ public final boolean equals(final This permission) { return super.equals(permission) && actionsEquals(permission); }