All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.isi.nlp.strings.offsets.ByteOffset Maven / Gradle / Ivy

The newest version!
package edu.isi.nlp.strings.offsets;

public final class ByteOffset extends AbstractOffset {

  private ByteOffset(int val) {
    super(val);
  }

  public static ByteOffset asByteOffset(final int val) {
    return new ByteOffset(val);
  }

  @Override
  public String toString() {
    return "b" + asInt();
  }

  @Override
  public ByteOffset shiftedCopy(final int shiftAmount) {
    return ByteOffset.asByteOffset(asInt() + shiftAmount);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy