Merge "Implement missing hashCode() method in ApfCapabilities" into main
This commit is contained in:
commit
c4d1aefecc
1 changed files with 7 additions and 0 deletions
|
|
@ -22,6 +22,8 @@ import android.annotation.SystemApi;
|
|||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* APF program support capabilities. APF stands for Android Packet Filtering and it is a flexible
|
||||
* way to drop unwanted network packets to save power.
|
||||
|
|
@ -102,6 +104,11 @@ public final class ApfCapabilities implements Parcelable {
|
|||
&& apfPacketFormat == other.apfPacketFormat;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(apfVersionSupported, maximumApfProgramSize, apfPacketFormat);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether the APF interpreter advertises support for the data buffer access opcodes
|
||||
* LDDW (LoaD Data Word) and STDW (STore Data Word). Full LDDW (LoaD Data Word) and
|
||||
|
|
|
|||
Loading…
Reference in a new issue