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 void
afficher(boolean[] t)
static void
afficher(boolean[][] t)
static void
static void
static void
afficher(byte[] t)
static void
afficher(byte[][] t)
static void
static void
afficher(int[] t)
static void
afficher(int[][] t)
static void
static void
static void
static void
static <T> void
afficher(T[] t)
static <T> void
afficher(T[][] t)
static <T> void
static 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 void
boucherLesCasesVide(String[] t, String[] tDefaut)
static boolean
contient(byte[][] t, byte x)
check if t contain x.static boolean
contient(byte[] t, byte x)
check if t contain x.static boolean
contient(char[] t, char x)
check if t contain x.static boolean
contient(int[][] t, int x)
check if t contain x.static boolean
contient(int[] t, int x)
check if t contain x.static boolean
check if t contain x.static <T> boolean
contient(T[] t, T x)
check if t contain x.static boolean
contientLesElementDeX(byte[][] t, byte[] x)
check if t contain x.static boolean
contientUniquement(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 boolean
equals(byte[][] t, byte[][] t2)
static boolean
equals(byte[] t, byte[] t2)
static boolean
equals(int[] t, int[] t2)
private static void
private static void
erreurPosition(int i)
private static void
erreurPositionCorrige(int i)
private static void
static boolean
estDansT(int[] t, int x)
private static boolean
isCharSmallerInString1(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 void
sort(int[] tab, boolean ascendingOrder)
A selection sorting algo.static void
static void
A selection sorting algo.static String
tableauToString(boolean[] t)
static String
tableauToString(boolean[] t, String sep)
static String
tableauToString(byte[] t)
static String
tableauToString(byte[] t, String sep)
static String
tableauToString(int[] t)
static String
tableauToString(int[] t, String sep)
static String
tableauToString(long[] t)
static String
tableauToString(long[] t, String sep)
static String
tableauToString(String[] t)
static String
tableauToString(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 [][].
-