Package fr.formiko.usuel
Class tableau<T>
java.lang.Object
fr.formiko.usuel.tableau<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]static String[]static voidafficher(boolean[] t)static voidafficher(boolean[][] t)static voidstatic voidstatic voidafficher(byte[] t)static voidafficher(byte[][] t)static voidstatic voidafficher(int[] t)static voidafficher(int[][] t)static voidstatic voidstatic voidstatic voidstatic <T> voidafficher(T[] t)static <T> voidafficher(T[][] t)static <T> voidstatic byte[]ajouteT(byte[] t1, byte[] t2)static int[]ajouteT(int[] t1, int[] t2)static String[]static byte[]ajouteX(byte[] t, byte x)static byte[]ajouteX(byte[] t, byte x, int i)static int[]ajouteX(int[] t, int x)static int[]ajouteX(int[] t, int x, int i)static voidboucherLesCasesVide(String[] t, String[] tDefaut)static booleancontient(byte[][] t, byte x)check if t contain x.static booleancontient(byte[] t, byte x)check if t contain x.static booleancontient(char[] t, char x)check if t contain x.static booleancontient(int[][] t, int x)check if t contain x.static booleancontient(int[] t, int x)check if t contain x.static booleancheck if t contain x.static <T> booleancontient(T[] t, T x)check if t contain x.static booleancontientLesElementDeX(byte[][] t, byte[] x)check if t contain x.static booleancontientUniquement(byte[] t, byte x)check if t contain only x.static byte[]copier(byte[] t)copy an array.static byte[][]copier(byte[][] t)copy an array [][].static booleanequals(byte[][] t, byte[][] t2)static booleanequals(byte[] t, byte[] t2)static booleanequals(int[] t, int[] t2)private static voidprivate static voiderreurPosition(int i)private static voiderreurPositionCorrige(int i)private static voidstatic booleanestDansT(int[] t, int x)private static booleanisCharSmallerInString1(String s1, String s2)A tools for sort sting that return true if s1 < s2.static String[]static byte[]retire(byte[] t, int i)static int[]retire(int[] t, int i)static int[]retirerX(int[] t, int x)static int[]retirerX(int[] t, int[] x)static String[]static byte[]retireX(byte[] t, byte x)static byte[][]rogner(byte[][] t, int a, int b, int c, int d)trim the array.static voidsort(int[] tab, boolean ascendingOrder)A selection sorting algo.static voidstatic voidA selection sorting algo.static StringtableauToString(boolean[] t)static StringtableauToString(boolean[] t, String sep)static StringtableauToString(byte[] t)static StringtableauToString(byte[] t, String sep)static StringtableauToString(int[] t)static StringtableauToString(int[] t, String sep)static StringtableauToString(long[] t)static StringtableauToString(long[] t, String sep)static StringtableauToString(String[] t)static StringtableauToString(String[] t, String sep)
-
Field Details
-
f
-
-
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
-
sort
A selection sorting algo.- Parameters:
ascendingOrder- true → the smaler element will be the 1a.
-
sort
-
isCharSmallerInString1
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
-
retirerX
-
addX
-
addX
-
ajouteT
-
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
-
afficher
-
afficher
-
afficher
-
afficher
public static <T> void afficher(T[] t) -
afficher
public static <T> void afficher(T[][] t) -
afficher
-
afficher
public static void afficher(int[] t) -
afficher
public static void afficher(int[][] t) -
afficher
-
afficher
public static void afficher(byte[] t) -
afficher
public static void afficher(byte[][] t) -
afficher
-
afficher
-
afficher
public static void afficher(boolean[] t) -
afficher
public static void afficher(boolean[][] t) -
boucherLesCasesVide
-
tableauToString
-
tableauToString
-
tableauToString
-
tableauToString
-
tableauToString
-
tableauToString
-
tableauToString
-
tableauToString
-
tableauToString
-
tableauToString
-
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
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 arraya- How much do we need to trim in pixel before widthb- How much do we need to trim in pixel before heightc- How much do we need to trim in pixel after widthd- 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 [][].
-