Skip to content

Commit 12deb2d

Browse files
committed
sporniket-core-lang -- format code
1 parent ea48330 commit 12deb2d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2327
-2121
lines changed

sporniket-core-lang/src/main/java/com/sporniket/libre/lang/CharacterCodePoints.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
* This file is part of <i>The Sporniket Core Library &#8211; lang</i>.
1313
*
1414
* <p>
15-
* <i>The Sporniket Core Library &#8211; lang</i> is free software: you can redistribute it and/or modify it under the terms of
16-
* the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at
17-
* your option) any later version.
15+
* <i>The Sporniket Core Library &#8211; lang</i> is free software: you can redistribute it and/or modify it under the terms of the
16+
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
17+
* option) any later version.
1818
*
1919
* <p>
2020
* <i>The Sporniket Core Library &#8211; lang</i> is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
@@ -27,45 +27,45 @@
2727
*
2828
* <hr>
2929
*
30-
* @author David SPORN
30+
* @author David SPORN
3131
* @version 22.09.00
3232
* @since 12.06.01
3333
*/
3434
public final class CharacterCodePoints
3535
{
36-
public static final Byte HTAB = 9;
36+
public static final Byte HTAB = 9;
3737

38-
public static final Byte LF = 10;
38+
public static final Byte LF = 10;
3939

40-
public static final Byte CR = 13;
40+
public static final Byte CR = 13;
4141

42-
public static final Byte DQUOTE = 22;
42+
public static final Byte DQUOTE = 22;
4343

44-
public static final Byte SPACE = 32;
44+
public static final Byte SPACE = 32;
4545

46-
public static final Byte PLUS_SIGN = 43;
46+
public static final Byte PLUS_SIGN = 43;
4747

48-
public static final Byte COMMA = 44;
48+
public static final Byte COMMA = 44;
4949

50-
public static final Byte HYPHEN_MINUS = 45;
50+
public static final Byte HYPHEN_MINUS = 45;
5151

52-
public static final Byte PERIOD = 46;
52+
public static final Byte PERIOD = 46;
5353

54-
public static final Byte SOLIDUS = 47;
54+
public static final Byte SOLIDUS = 47;
5555

56-
public static final Byte COLON = 58;
56+
public static final Byte COLON = 58;
5757

58-
public static final Byte SEMICOLON = 59;
58+
public static final Byte SEMICOLON = 59;
5959

60-
public static final Byte LATIN_CAPITAL_LETTER_N = 78;
60+
public static final Byte LATIN_CAPITAL_LETTER_N = 78;
6161

62-
public static final Byte LATIN_CAPITAL_LETTER_T = 84;
62+
public static final Byte LATIN_CAPITAL_LETTER_T = 84;
6363

64-
public static final Byte LATIN_CAPITAL_LETTER_X = 88;
64+
public static final Byte LATIN_CAPITAL_LETTER_X = 88;
6565

66-
public static final Byte LATIN_CAPITAL_LETTER_Z = 90;
66+
public static final Byte LATIN_CAPITAL_LETTER_Z = 90;
6767

68-
public static final Byte BACKSLASH = 92;
68+
public static final Byte BACKSLASH = 92;
6969

70-
public static final Byte LATIN_SMALL_LETTER_N = 110;
70+
public static final Byte LATIN_SMALL_LETTER_N = 110;
7171
}

sporniket-core-lang/src/main/java/com/sporniket/libre/lang/CollectionTools.java

Lines changed: 60 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
package com.sporniket.libre.lang ;
1+
package com.sporniket.libre.lang;
22

3-
import java.util.Map ;
4-
import java.util.ResourceBundle ;
3+
import java.util.Map;
4+
import java.util.ResourceBundle;
55

66
/**
77
* Macros for collections and resources.
88
* <p>
9-
* These macros are meant to be used when retrieving a value from a <code>ResourceBundle</code> or a <code>Collection</code> and wanting a default value if it fails.
9+
* These macros are meant to be used when retrieving a value from a <code>ResourceBundle</code> or a <code>Collection</code> and
10+
* wanting a default value if it fails.
1011
* </p>
1112
*
1213
* <p>
@@ -18,70 +19,94 @@
1819
* This file is part of <i>The Sporniket Core Library &#8211; lang</i>.
1920
*
2021
* <p>
21-
* <i>The Sporniket Core Library &#8211; lang</i> is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published
22-
* by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
22+
* <i>The Sporniket Core Library &#8211; lang</i> is free software: you can redistribute it and/or modify it under the terms of the
23+
* GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
24+
* option) any later version.
2325
*
2426
* <p>
25-
* <i>The Sporniket Core Library &#8211; lang</i> is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
26-
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
27+
* <i>The Sporniket Core Library &#8211; lang</i> is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
28+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
29+
* License for more details.
2730
*
2831
* <p>
29-
* You should have received a copy of the GNU Lesser General Public License along with <i>The Sporniket Core Library &#8211; lang</i>. If not, see
30-
* <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. 2
32+
* You should have received a copy of the GNU Lesser General Public License along with <i>The Sporniket Core Library &#8211;
33+
* lang</i>. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. 2
3134
*
3235
* <hr>
3336
*
3437
* @author David SPORN
3538
* @version 22.09.00
3639
* @since 12.06.01
3740
*/
38-
public class CollectionTools {
41+
public class CollectionTools
42+
{
3943

4044
/**
4145
* Return an object from a ResourceBundle.
4246
*
43-
* @param source ResourceBundle from which extract the value
44-
* @param key The key to retrieve the value
45-
* @param defaultValue When the wanted value doesn't exist, return this one
47+
* @param source
48+
* ResourceBundle from which extract the value
49+
* @param key
50+
* The key to retrieve the value
51+
* @param defaultValue
52+
* When the wanted value doesn't exist, return this one
4653
* @return The wanted object or defaulValue
4754
*/
48-
public static Object getObject(final ResourceBundle source, final String key, final Object defaultValue) {
49-
try {
50-
return source.getObject(key) ;
51-
} catch (Exception _exception) {
52-
return defaultValue ;
55+
public static Object getObject(final ResourceBundle source, final String key, final Object defaultValue)
56+
{
57+
try
58+
{
59+
return source.getObject(key);
60+
}
61+
catch (Exception _exception)
62+
{
63+
return defaultValue;
5364
}
5465
}
5566

5667
/**
5768
* Return an object from a Map.
5869
*
59-
* @param source Map from which extract the value
60-
* @param key The key to retrieve the value
61-
* @param defaultValue When the wanted value doesn't exist, return this one
70+
* @param source
71+
* Map from which extract the value
72+
* @param key
73+
* The key to retrieve the value
74+
* @param defaultValue
75+
* When the wanted value doesn't exist, return this one
6276
* @return The wanted object or defaulValue
6377
*/
64-
public static Object getObject(final Map<String, Object> source, final String key, final Object defaultValue) {
65-
try {
66-
return source.get(key) ;
67-
} catch (Exception _exception) {
68-
return defaultValue ;
78+
public static Object getObject(final Map<String, Object> source, final String key, final Object defaultValue)
79+
{
80+
try
81+
{
82+
return source.get(key);
83+
}
84+
catch (Exception _exception)
85+
{
86+
return defaultValue;
6987
}
7088
}
7189

7290
/**
7391
* Return an string from a ResourceBundle.
7492
*
75-
* @param source ResourceBundle from which extract the value
76-
* @param key The key to retrieve the value
77-
* @param defaultValue When the wanted value doesn't exist, return this one
93+
* @param source
94+
* ResourceBundle from which extract the value
95+
* @param key
96+
* The key to retrieve the value
97+
* @param defaultValue
98+
* When the wanted value doesn't exist, return this one
7899
* @return The wanted object or defaulValue
79100
*/
80-
public static String getString(final ResourceBundle source, final String key, final String defaultValue) {
81-
try {
82-
return source.getString(key) ;
83-
} catch (Exception _exception) {
84-
return defaultValue ;
101+
public static String getString(final ResourceBundle source, final String key, final String defaultValue)
102+
{
103+
try
104+
{
105+
return source.getString(key);
106+
}
107+
catch (Exception _exception)
108+
{
109+
return defaultValue;
85110
}
86111
}
87112

sporniket-core-lang/src/main/java/com/sporniket/libre/lang/Constants.java

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,47 +33,47 @@
3333
*
3434
* <hr>
3535
*
36-
* @author David SPORN
36+
* @author David SPORN
3737
* @version 22.09.00
3838
* @since 12.06.01
3939
*/
4040
public final class Constants
4141
{
4242

43-
/**
44-
* Charset names.
45-
*
46-
* <p>
47-
* &copy; Copyright 2002-2022 David Sporn
48-
* </p>
49-
* <hr>
50-
*
51-
* <p>
52-
* This file is part of <i>The Sporniket Core Library &#8211; lang</i>.
53-
*
54-
* <p>
55-
* <i>The Sporniket Core Library &#8211; lang</i> is free software: you can redistribute it and/or modify it under the terms of
56-
* the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at
57-
* your option) any later version.
58-
*
59-
* <p>
60-
* <i>The Sporniket Core Library &#8211; lang</i> is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
61-
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
62-
* License for more details.
63-
*
64-
* <p>
65-
* You should have received a copy of the GNU Lesser General Public License along with <i>The Sporniket Core Library &#8211;
66-
* lang</i>. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. 2
67-
*
68-
* <hr>
69-
*
70-
* @author David SPORN
71-
* @version 22.09.00
72-
* @since 15.02.00
73-
* @deprecated use {@link StandardCharsets#UTF_8}
74-
*/
75-
public static final class CharsetNames
76-
{
77-
public static final Charset UTF8 = Charset.forName("UTF8");
78-
}
43+
/**
44+
* Charset names.
45+
*
46+
* <p>
47+
* &copy; Copyright 2002-2022 David Sporn
48+
* </p>
49+
* <hr>
50+
*
51+
* <p>
52+
* This file is part of <i>The Sporniket Core Library &#8211; lang</i>.
53+
*
54+
* <p>
55+
* <i>The Sporniket Core Library &#8211; lang</i> is free software: you can redistribute it and/or modify it under the terms of
56+
* the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at
57+
* your option) any later version.
58+
*
59+
* <p>
60+
* <i>The Sporniket Core Library &#8211; lang</i> is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
61+
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
62+
* License for more details.
63+
*
64+
* <p>
65+
* You should have received a copy of the GNU Lesser General Public License along with <i>The Sporniket Core Library &#8211;
66+
* lang</i>. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. 2
67+
*
68+
* <hr>
69+
*
70+
* @author David SPORN
71+
* @version 22.09.00
72+
* @since 15.02.00
73+
* @deprecated use {@link StandardCharsets#UTF_8}
74+
*/
75+
public static final class CharsetNames
76+
{
77+
public static final Charset UTF8 = Charset.forName("UTF8");
78+
}
7979
}

sporniket-core-lang/src/main/java/com/sporniket/libre/lang/ContainerFeederInterface.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@
2929
*
3030
* <hr>
3131
*
32-
* @author David SPORN
32+
* @author David SPORN
3333
* @version 22.09.00
3434
* @since 12.06.01
3535
*/
3636
public interface ContainerFeederInterface
3737
{
38-
int DEFAULT_PROFIL = 0;
38+
int DEFAULT_PROFIL = 0;
3939

40-
/**
41-
* Add some component to the given container.
42-
*
43-
* @param container
44-
* The container to fill.
45-
* @param profil
46-
* an optional value to fill the container differently than usual (usual = 0).
47-
* @throws Exception
48-
* if something bad occurs.
49-
*/
50-
void feedContainer(Object container, int profil) throws Exception;
40+
/**
41+
* Add some component to the given container.
42+
*
43+
* @param container
44+
* The container to fill.
45+
* @param profil
46+
* an optional value to fill the container differently than usual (usual = 0).
47+
* @throws Exception
48+
* if something bad occurs.
49+
*/
50+
void feedContainer(Object container, int profil) throws Exception;
5151
}

0 commit comments

Comments
 (0)