An ASN.1 tag consisting of tag class and number.

  • Tag
    • Basic
      • Identifiable
      • Object
        • Anything
Tag(Integer tagNumber, TagClass tagClass = ...)
  • tagNumber

    The tag's number. Always nonnegative.

  • tagClass = TagClass.contextSpecific

    The tag's class.

asn1Stringshared String asn1String

String representation that can be used in an ASN.1 listing. (Still in flux)

hashshared actual Integer hash

The hash value of the value, which allows the value to be an element of a hash-based set or key of a hash-based map. Implementations must respect the constraint that:

  • if x==y then x.hash==y.hash.

Therefore, a class which refines equals must also refine hash.

In general, hash values vary between platforms and between executions of the same program.

Note that when executing on a Java Virtual Machine, the 64-bit Integer value returned by an implementation of hash is truncated to a 32-bit integer value by removal of the 32 highest order bits, before returning the value to the caller.

Refines Identifiable.hash ultimately refines Object.hash
stringshared actual String string

A developer-friendly string representing the instance. Concatenates the name of the concrete class of the instance with the hash of the instance. Subclasses are encouraged to refine this implementation to produce a more meaningful representation.

Refines Object.string
tagClassshared TagClass tagClass

The tag's class.

tagNumbershared Integer tagNumber

The tag's number. Always nonnegative.

Inherited Attributes
Attributes inherited from: Object
hash, string
equalsshared actual Boolean equals(Object other)

Two tags are equal if both their class and their number match.

Refines Identifiable.equals ultimately refines Object.equals
Inherited Methods
Methods inherited from: Object