code: public ShortBuffer toShortBuffer() {
      ShortBuffer sb = ShortBuffer.allocate(this.cardinality);
      sb.put(this.content, 0, this.cardinality);
      return sb;
    }
docs: Return the content of this container as a ShortBuffer. This creates a copy and might be
  relatively slow.
  
  @return the ShortBuffer