コード例 #1
0
  boolean asn1Equals(DERObject o) {
    if (!(o instanceof DERApplicationSpecific)) {
      return false;
    }

    DERApplicationSpecific other = (DERApplicationSpecific) o;

    return isConstructed == other.isConstructed
        && tag == other.tag
        && Arrays.areEqual(octets, other.octets);
  }
コード例 #2
0
 public int hashCode() {
   return (isConstructed ? 1 : 0) ^ tag ^ Arrays.hashCode(octets);
 }