class IntArray implements Matrix, ImmutableBean, Serializable {

  public static IntArray copyOf(Collection<Integer> collection) {
    if (collection.size() == 0) {
      return EMPTY;
    }
    if (collection instanceof ImmList) {
      return ((ImmList) collection).underlying;
    }
    return new IntArray(Ints.toArray(collection));
  }

  private  IntArray(int[] array);

}