Class tableau<T>

java.lang.Object
fr.formiko.usuel.tableau<T>

public class tableau<T> extends Object
  • Field Details

  • Constructor Details

    • tableau

      public tableau()
  • Method Details

    • erreurPosition

      private static void erreurPosition(int i)
    • erreurPositionCorrige

      private static void erreurPositionCorrige(int i)
    • erreurVide

      private static void erreurVide()
    • erreurElementManquant

      private static void erreurElementManquant(String x)
    • sort

      public static void sort(String[] tab, boolean ascendingOrder)
      A selection sorting algo.
      Parameters:
      ascendingOrder - true → the smaler element will be the 1a.
    • sort

      public static void sort(String[] tab)
    • isCharSmallerInString1

      private static boolean isCharSmallerInString1(String s1, String s2)
      A tools for sort sting that return true if s1 < s2.
      Parameters:
      s1 - 1a String.
      s2 - 2a String. return s1<s2 depending of char value.
    • sort

      public static void sort(int[] tab, boolean ascendingOrder)
      A selection sorting algo.
      Parameters:
      ascendingOrder - true → the smaler element will be the 1a.
    • remove

      public static String[] remove(String[] t, int i)
    • retirerX

      public static String[] retirerX(String[] t, String x)
    • addX

      public static String[] addX(String[] t, String x, int i)
    • addX

      public static String[] addX(String[] t, String x)
    • ajouteT

      public static String[] ajouteT(String[] t1, String[] t2)
    • retire

      public static int[] retire(int[] t, int i)
    • retirerX

      public static int[] retirerX(int[] t, int x)
    • retirerX

      public static int[] retirerX(int[] t, int[] x)
    • ajouteX

      public static int[] ajouteX(int[] t, int x, int i)
    • ajouteX

      public static int[] ajouteX(int[] t, int x)
    • ajouteT

      public static int[] ajouteT(int[] t1, int[] t2)
    • retire

      public static byte[] retire(byte[] t, int i)
    • retireX

      public static byte[] retireX(byte[] t, byte x)
    • ajouteX

      public static byte[] ajouteX(byte[] t, byte x, int i)
    • ajouteX

      public static byte[] ajouteX(byte[] t, byte x)
    • ajouteT

      public static byte[] ajouteT(byte[] t1, byte[] t2)
    • estDansT

      public static boolean estDansT(int[] t, int x)
    • afficher

      public static void afficher(String[] t, String separateur)
    • afficher

      public static void afficher(String[] t)
    • afficher

      public static void afficher(String[][] t)
    • afficher

      public static <T> void afficher(T[] t, String separateur)
    • afficher

      public static <T> void afficher(T[] t)
    • afficher

      public static <T> void afficher(T[][] t)
    • afficher

      public static void afficher(int[] t, String separateur)
    • afficher

      public static void afficher(int[] t)
    • afficher

      public static void afficher(int[][] t)
    • afficher

      public static void afficher(byte[] t, String separateur)
    • afficher

      public static void afficher(byte[] t)
    • afficher

      public static void afficher(byte[][] t)
    • afficher

      public static void afficher(boolean[] t, String separateur)
    • afficher

      public static void afficher(boolean[][] t, String s)
    • afficher

      public static void afficher(boolean[] t)
    • afficher

      public static void afficher(boolean[][] t)
    • boucherLesCasesVide

      public static void boucherLesCasesVide(String[] t, String[] tDefaut)
    • tableauToString

      public static String tableauToString(String[] t, String sep)
    • tableauToString

      public static String tableauToString(String[] t)
    • tableauToString

      public static String tableauToString(int[] t, String sep)
    • tableauToString

      public static String tableauToString(int[] t)
    • tableauToString

      public static String tableauToString(byte[] t, String sep)
    • tableauToString

      public static String tableauToString(byte[] t)
    • tableauToString

      public static String tableauToString(long[] t, String sep)
    • tableauToString

      public static String tableauToString(long[] t)
    • tableauToString

      public static String tableauToString(boolean[] t, String sep)
    • tableauToString

      public static String tableauToString(boolean[] t)
    • contient

      public static boolean contient(int[] t, int x)
      check if t contain x.
    • contient

      public static boolean contient(byte[] t, byte x)
      check if t contain x.
    • contient

      public static boolean contient(char[] t, char x)
      check if t contain x.
    • contient

      public static boolean contient(String[] t, String x)
      check if t contain x.
    • contient

      public static <T> boolean contient(T[] t, T x)
      check if t contain x.
    • contient

      public static boolean contient(int[][] t, int x)
      check if t contain x.
    • contient

      public static boolean contient(byte[][] t, byte x)
      check if t contain x.
    • contientLesElementDeX

      public static boolean contientLesElementDeX(byte[][] t, byte[] x)
      check if t contain x.
    • contientUniquement

      public static boolean contientUniquement(byte[] t, byte x)
      check if t contain only x.
    • rogner

      public static byte[][] rogner(byte[][] t, int a, int b, int c, int d)
      trim the array.
      Parameters:
      t - the array
      a - How much do we need to trim in pixel before width
      b - How much do we need to trim in pixel before height
      c - How much do we need to trim in pixel after width
      d - How much do we need to trim in pixel after height
      Returns:
      a new array trim
    • equals

      public static boolean equals(byte[] t, byte[] t2)
    • equals

      public static boolean equals(byte[][] t, byte[][] t2)
    • equals

      public static boolean equals(int[] t, int[] t2)
    • copier

      public static byte[] copier(byte[] t)
      copy an array.
    • copier

      public static byte[][] copier(byte[][] t)
      copy an array [][].