Loading core/java/android/net/VpnProfileState.java +16 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.os.Parcelable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.Objects; import java.util.StringJoiner; /** Loading Loading @@ -176,4 +177,19 @@ public final class VpnProfileState implements Parcelable { resultJoiner.add("Lockdown: " + isLockdownEnabled()); return resultJoiner.toString(); } @Override public boolean equals(@Nullable Object obj) { if (!(obj instanceof VpnProfileState)) return false; final VpnProfileState that = (VpnProfileState) obj; return (getState() == that.getState() && Objects.equals(getSessionId(), that.getSessionId()) && isAlwaysOn() == that.isAlwaysOn() && isLockdownEnabled() == that.isLockdownEnabled()); } @Override public int hashCode() { return Objects.hash(getState(), getSessionId(), isAlwaysOn(), isLockdownEnabled()); } } Loading
core/java/android/net/VpnProfileState.java +16 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.os.Parcelable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.Objects; import java.util.StringJoiner; /** Loading Loading @@ -176,4 +177,19 @@ public final class VpnProfileState implements Parcelable { resultJoiner.add("Lockdown: " + isLockdownEnabled()); return resultJoiner.toString(); } @Override public boolean equals(@Nullable Object obj) { if (!(obj instanceof VpnProfileState)) return false; final VpnProfileState that = (VpnProfileState) obj; return (getState() == that.getState() && Objects.equals(getSessionId(), that.getSessionId()) && isAlwaysOn() == that.isAlwaysOn() && isLockdownEnabled() == that.isLockdownEnabled()); } @Override public int hashCode() { return Objects.hash(getState(), getSessionId(), isAlwaysOn(), isLockdownEnabled()); } }