/** * Determine whether this permission object is equal to another object. * * @param obj the object to compare to * @return {@code true} if the object is a permission equal to this one; {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean equals(final Object obj) { return obj != null && obj.getClass() == getClass() && equals((This) obj); }
final Object writeReplace() { return new SerializedPermission(getClass(), getName(), getActions()); } }
/** * Determine whether this permission implies another permission. * * @param permission the other permission * @return {@code true} if this permission implies the other; {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean implies(Permission permission) { return permission != null && getClass() == permission.getClass() && implies((This) permission); }
final Object writeReplace() { return new SerializedPermission(getClass(), getName(), getActions()); } }
/** * Determine whether this permission object is equal to another object. * * @param obj the object to compare to * @return {@code true} if the object is a permission equal to this one; {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean equals(final Object obj) { return obj != null && obj.getClass() == getClass() && equals((This) obj); }
final Object writeReplace() { return new SerializedPermission(getClass(), getName(), getActions()); } }
/** * Determine whether this permission implies another permission. * * @param permission the other permission * @return {@code true} if this permission implies the other; {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean implies(Permission permission) { return permission != null && getClass() == permission.getClass() && implies((This) permission); }
/** * Determine whether this permission object is equal to another object. * * @param obj the object to compare to * @return {@code true} if the object is a permission equal to this one; {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean equals(final Object obj) { return obj != null && obj.getClass() == getClass() && equals((This) obj); }
final Object writeReplace() { return new SerializedPermission(getClass(), getName(), getActions()); } }
/** * Determine whether this permission implies another permission. * * @param permission the other permission * @return {@code true} if this permission implies the other; {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean implies(Permission permission) { return permission != null && getClass() == permission.getClass() && implies((This) permission); }
/** * Determine whether this permission object is equal to another object. * * @param obj the object to compare to * @return {@code true} if the object is a permission equal to this one; {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean equals(final Object obj) { return obj != null && obj.getClass() == getClass() && equals((This) obj); }
/** * Determine whether this permission implies another permission. * * @param permission the other permission * @return {@code true} if this permission implies the other; {@code false} otherwise */ @SuppressWarnings("unchecked") public final boolean implies(Permission permission) { return permission != null && getClass() == permission.getClass() && implies((This) permission); }