package ch.deletescape.primitives.arrays;

import ch.deletescape.primitives.PrShort;

public final class PrShortArray {
  /**
   * Private Constructor to prevent initialization
   */
  private PrShortArray() {
  }

  /**
   * Converts a long array to a short array using {@link PrShort#from(long)}
   * 
   * @param lngArr
   *          the long array to convert
   * @return the resulting short array.
   * @see PrShort#from(long)
   */
  public static short[] from(long[] lngArr) {
    short[] tmp = new short[lngArr.length];
    for (int i = 0; i < lngArr.length; i++) {
      tmp[i] = PrShort.from(lngArr[i]);
    }
    return tmp;
  }

  /**
   * Converts a char array to a short array using {@link PrShort#from(char)}
   * 
   * @param cArr
   *          the char array to convert
   * @return the resulting short array.
   * @see PrShort#from(char)
   */
  public static short[] from(char[] cArr) {
    short[] tmp = new short[cArr.length];
    for (int i = 0; i < cArr.length; i++) {
      tmp[i] = PrShort.from(cArr[i]);
    }
    return tmp;
  }

  /**
   * Converts a byte array to a short array
   * 
   * @param shrtArr
   *          the short array to convert
   * @return the resulting short array.
   */
  public static short[] from(byte[] bArr) {
    short[] tmp = new short[bArr.length];
    for (int i = 0; i < bArr.length; i++) {
      tmp[i] = bArr[i];
    }
    return tmp;
  }

  /**
   * Converts a int array to a short array using {@link PrShort#from(int)}
   * 
   * @param iArr
   *          the int array to convert
   * @return the resulting short array.
   * @see PrShort#from(int)
   */
  public static short[] from(int[] iArr) {
    short[] tmp = new short[iArr.length];
    for (int i = 0; i < iArr.length; i++) {
      tmp[i] = PrShort.from(iArr[i]);
    }
    return tmp;
  }

  /**
   * Converts a double array to a short array using {@link PrShort#from(double)}
   * 
   * @param dblArr
   *          the double array to convert
   * @return the resulting short array.
   * @see PrShort#from(double)
   */
  public static short[] from(double[] dblArr) {
    short[] tmp = new short[dblArr.length];
    for (int i = 0; i < dblArr.length; i++) {
      tmp[i] = PrShort.from(dblArr[i]);
    }
    return tmp;
  }

  /**
   * Converts a float array to a short array using {@link PrShort#from(float)}
   * 
   * @param fltArr
   *          the float array to convert
   * @return the resulting short array.
   * @see PrShort#from(float)
   */
  public static short[] from(float[] fltArr) {
    short[] tmp = new short[fltArr.length];
    for (int i = 0; i < fltArr.length; i++) {
      tmp[i] = PrShort.from(fltArr[i]);
    }
    return tmp;
  }

  /**
   * Converts a boolean array to a short array using {@link PrShort#from(boolean)}
   * 
   * @param boolArr
   *          the boolean array to convert
   * @return the resulting short array.
   * @see PrShort#from(boolean)
   */
  public static short[] from(boolean[] boolArr) {
    short[] tmp = new short[boolArr.length];
    for (int i = 0; i < boolArr.length; i++) {
      tmp[i] = PrShort.from(boolArr[i]);
    }
    return tmp;
  }
}

@@ -1122,12 +1122,9 @@
 ram 
-shrt
+b
 Arr%0A
@@ -1141,21 +1141,20 @@
     the 
-short
+byte
  array t

fix javadoc