Class GString
- All Implemented Interfaces:
Serializable
,Iterable<String>
,Collection<String>
,List<String>
Custom String Linked Liste class.
It have a lot of useful function that use fore() loop.
It have a lot of useful function that use fore() loop.
- Author:
- Hydrolien
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParMorceaux(String s, int maxLen)
Add item peace by peace.void
addParMorceaux(String s, int maxLen, boolean doNotCutWord)
Add item peace by peace.void
Print this.int
count how much javadoc commentary a GString have.count how much fonction and class (short or long) a GString have.count how much class and long fonction (public, ø, protected, private) a GString have.count how much javadoc commentary and fonction and class (short or long) a GString have.int
Count different line between this & gs2.private boolean
Return true if is a java commentary line.Return a FComboBox with all the String in it.getComboBox(int x)
Return a FComboBox with all the String in it.Return the translation key for s.void
Remove different line between this & gs2.Do a transformation for score.Methods inherited from class fr.formiko.usuel.structures.listes.Liste
add, add, add, addAll, addAll, addHead, addList, addSorted, addTail, clear, contains, containsAll, equals, filter, get, getFirst, getHead, getItem, getLast, getMost, getTail, indexOf, isEmpty, iterator, lastIndexOf, length, listIterator, listIterator, pop, push, push, remove, remove, removeAll, removeDuplicateItem, removeItem, retainAll, set, setHead, setTail, size, sort, subList, toArray, toArray, toGString, toString, toStringId, toStringLong, updateTail
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
hashCode, replaceAll, spliterator
-
Constructor Details
-
GString
Constructor from an array. -
GString
public GString()
-
-
Method Details
-
getComboBox
Return a FComboBox with all the String in it.- Parameters:
x
- the default select item.
-
getComboBox
Return a FComboBox with all the String in it.
1a item is selected. -
getKey
Return the translation key for s.
If it fail it return null.- Parameters:
s
- the string give by the key.
-
addParMorceaux
Add item peace by peace.- Parameters:
s
- the String to split.maxLen
- the max length for a line.doNotCutWord
- if true word will not be cut. (If a word is too long for being in 1 line it will be cut.)
-
addParMorceaux
Add item peace by peace.- Parameters:
s
- the String to split.maxLen
- the max length for a line.
-
afficheToi
public void afficheToi()Print this.
If is empty it will print a special mail. -
transformerScore
Do a transformation for score. -
compterlineDifferenteDe
Count different line between this & gs2. -
supprimerLesLignesCommunesAvec
Remove different line between this & gs2. -
compterFct
count how much fonction and class (short or long) a GString have. -
compterComJavadoc
public int compterComJavadoc()count how much javadoc commentary a GString have. -
compterFctEtComJavadoc
count how much javadoc commentary and fonction and class (short or long) a GString have. -
compterFctEnDetail
count how much class and long fonction (public, ø, protected, private) a GString have. -
estCom
Return true if is a java commentary line.
Line can have a comment at the end of the line & be concidered as a non-comment line if comment start after char 20 & midle of the line.
-