public long shift(long val) {
      assert val <= mask() : "Input value " + val + " is too large for " + this
          + " which has a maximum of " + mask();
      return val << position;
    }
Returns the value shifted into the field position.

@param val the value to shift
@return the shifted value
geode-core/src/main/java/org/apache/geode/internal/cache/ha/ThreadIdentifier.java