short[] lengthsCopy = new short[lengths.length]; System.arraycopy(lengths, 0, lengthsCopy, 0, lengths.length); return lengthsCopy;
return (short[]) lengths.clone();
  public short[] getLengths()  {    short[] lengthsCopy = new short[lengths.length];    System.arraycopy(lengths, 0, lengthsCopy, 0, lengths.length);    return lengthsCopy;  }