public int variant() {
    if (variant < 0) {
      // This field is composed of a varying number of bits
      if ((leastSigBits >>> 63) == 0) {
        variant = 0;
      } else if ((leastSigBits >>> 62) == 2) {
        variant = 2;
      } else {
        variant = (int)(leastSigBits >>> 61);
      }
    }
    return variant;
  }