Moved package from fr.devinsy.util to fr.devinsy.

This commit is contained in:
Christian P. MOMON 2018-05-30 18:44:25 +02:00
parent 980058604f
commit 266bd63118
12 changed files with 47 additions and 56 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON * Copyright (C) 2013-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.util.Comparator; import java.util.Comparator;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2008-2010,2013-2015,2017 Christian Pierre MOMON * Copyright (C) 2008-2010,2013-2015,2017-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.io.IOException; import java.io.IOException;
import java.text.Collator; import java.text.Collator;
@ -51,8 +51,8 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Constructs a list of string of the specified collection, in the order * Constructs a list of string of the specified collection, in the order they
* they are returned by the collection's iterator. * are returned by the collection's iterator.
* *
* @param source * @param source
*/ */
@ -147,8 +147,7 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Appends the string representation of the char argument to this string * Appends the string representation of the char argument to this string list.
* list.
* *
* @param character * @param character
* @return * @return
@ -230,8 +229,7 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Appends the string representation of the double argument to this string * Appends the string representation of the double argument to this string list.
* list.
* *
* @param value * @param value
* @return * @return
@ -247,8 +245,7 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Appends the string representation of the int argument to this string * Appends the string representation of the int argument to this string list.
* list.
* *
* @param value * @param value
* @return * @return
@ -264,8 +261,7 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Appends the string representation of the long argument to this string * Appends the string representation of the long argument to this string list.
* list.
* *
* @param value * @param value
* @return * @return
@ -305,8 +301,7 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Appends the string representation of the int argument to this string * Appends the string representation of the int argument to this string list.
* list.
* *
* @param value * @param value
* @return * @return
@ -351,8 +346,7 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Appends the string representation of the long argument to this string * Appends the string representation of the long argument to this string list.
* list.
* *
* @param value * @param value
* @return * @return
@ -432,8 +426,8 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Appends the string representation of the char argument to this string * Appends the string representation of the char argument to this string list,
* list, then append a break line too. * then append a break line too.
* *
* @param character * @param character
* @return * @return
@ -639,8 +633,7 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Deep copy and shallow copy have no sense about a list of immutable * Deep copy and shallow copy have no sense about a list of immutable objects.
* objects.
* *
* @return the string list * @return the string list
*/ */
@ -1500,9 +1493,8 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Merge all strings of the list into in single string. At the end of * Merge all strings of the list into in single string. At the end of operation,
* operation, the new string is the first of the list and the size list is * the new string is the first of the list and the size list is 1.
* 1.
* *
* @return the string list * @return the string list
*/ */
@ -1851,9 +1843,9 @@ public class StringList extends ArrayList<String> implements CharSequence, Appen
} }
/** /**
* Returns a string containing the concatenation of the strings of this * Returns a string containing the concatenation of the strings of this list.
* list. Between each string of this list, a separator argument string is * Between each string of this list, a separator argument string is concatenated
* concatenated too. * too.
* *
* @param separator * @param separator
* the separator * the separator

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2014-2015,2017 Christian Pierre MOMON * Copyright (C) 2014-2015,2017-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.util.Iterator; import java.util.Iterator;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2015,2017 Christian Pierre MOMON * Copyright (C) 2013-2015,2017-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
/** /**
* This class manages a char position in a StringList object. * This class manages a char position in a StringList object.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2015,2017 Christian Pierre MOMON * Copyright (C) 2013-2015,2017-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON * Copyright (C) 2013-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON * Copyright (C) 2013-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.io.IOException; import java.io.IOException;
import java.io.Writer; import java.io.Writer;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2014-2017 Christian Pierre MOMON * Copyright (C) 2014-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.util.Collection; import java.util.Collection;
import java.util.HashSet; import java.util.HashSet;
@ -39,8 +39,8 @@ public class StringSet extends HashSet<String>
} }
/** /**
* Constructs a list of string of the specified collection, in the order * Constructs a list of string of the specified collection, in the order they
* they are returned by the collection's iterator. * are returned by the collection's iterator.
* *
* @param source * @param source
* the source * the source
@ -163,8 +163,7 @@ public class StringSet extends HashSet<String>
} }
/** /**
* Deep copy and shallow copy have no sense about a list of immutable * Deep copy and shallow copy have no sense about a list of immutable objects.
* objects.
* *
* @return the string set * @return the string set
*/ */

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2008-2010,2013-2016,2017 Christian Pierre MOMON * Copyright (C) 2008-2010,2013-2016,2017-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.File; import java.io.File;
@ -1393,8 +1393,8 @@ public class StringsUtils
* *
* @param source * @param source
* the source * the source
* @return If argument is null then returns an empty string, otherwise * @return If argument is null then returns an empty string, otherwise returns a
* returns a string concatenation of the argument. * string concatenation of the argument.
*/ */
public static String toStringNotNull(final String[] source) public static String toStringNotNull(final String[] source)
{ {

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2017 Christian Pierre MOMON * Copyright (C) 2017-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,13 +16,13 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings.demo; package fr.devinsy.strings.demo;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import fr.devinsy.util.strings.StringList; import fr.devinsy.strings.StringList;
import fr.devinsy.util.strings.StringsUtils; import fr.devinsy.strings.StringsUtils;
/** /**
* The Class Demo. * The Class Demo.

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013,2014,2017 Christian Pierre MOMON * Copyright (C) 2013,2014,2017-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.util.Iterator; import java.util.Iterator;

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013,2014,2017 Christian Pierre MOMON * Copyright (C) 2013,2014,2017-2018 Christian Pierre MOMON
* *
* This file is part of Devinsy-strings. * This file is part of Devinsy-strings.
* *
@ -16,7 +16,7 @@
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU Lesser General Public License
* along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/> * along with Devinsy-strings. If not, see <http://www.gnu.org/licenses/>
*/ */
package fr.devinsy.util.strings; package fr.devinsy.strings;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;