Class Mix

java.lang.Object
it.ramecera.salad.everyday.Mix

public class Mix
extends java.lang.Object

Various utility methods.

Company: Ramecera™ ​​
Creation date: 2020-04-09
Last updated: 2020-09-24S

Changes:

Author:
M. Maglioni
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String[] avverbioNumerale
    Latin numeral adverbs
    static java.lang.String DOUBLEBLANK
    2 spaces
  • Constructor Summary

    Constructors 
    Constructor Description
    Mix()  
  • Method Summary

    Modifier and Type Method Description
    static int absoluteVersion​(java.lang.String x, java.lang.String message, int code)
    Method to switch from a software version in the form 3, 4.2, or 2.0.11 to the form 3000000, 4002000, 2000011.
    static java.lang.String[] analizzaPath​(java.lang.String g)
    Given a complete path of files, it produces an array of 3 strings containing respectively: the path, the name of the file without extension and without final dot, the extension without initial dot.
    static FileBase analizzaPathBase​(java.io.File file)
    It could have been an overload of the previous method, but the name was changed because only the type of return changes.
    static int charQ​(java.lang.String s, char t)
    Routine to count the occurrence of a certain character in a string.
    static void collapse​(java.sql.Statement[] statement, java.sql.Connection connection)
    Closes multiple statements and related connection.
    static void collapse​(java.sql.Statement statement, java.sql.Connection connection)
    Closes multiple statements and related connection.
    static java.lang.String compactingSpaces_A​(java.lang.String a)
    Compact a phrase (string) containing more than one blank between words in a phrase containing individual blanks.
    static java.lang.String compattaSpazi_B​(java.lang.String a)
    Deprecated.
    static char[] crittaSemplice_A​(char[] m, java.lang.String key)
    Encrypting a string from a key.
    static char[] daCharAdEsad​(char[] m)
    Calculation of an array of hexadecimal codes starting from an array of ordinary characters, that is, within the ASCII set.
    static byte[] daEsadAByte​(byte[] m)
    Calculation of an array of characters starting from its hexadecimal code.
    static char[] daEsadAChar​(char[] m)
    Calculation of an array of characters starting from its hexadecimal code.
    static char[] daEsadACharUnicode​(char[] m)
    Calculation of an array of characters starting from its hexadecimal code.
    static char[] daLong2Char​(int m)
    Calculation of an array of 1 or 2 characters of the domain [A-Z] starting from an integer not greater than 701 (26 + 26 26 - 1).
    static char[] daLong3Char​(long m)
    Calculation of a 3-character array of the domain [A-Z0-9] starting from a long integer not exceeding 36 raised to 3.
    static char[] daLong6Char​(long m)
    Calculation of a 6-character array of the domain [A-Z0-9] starting from a long integer not greater than 36 raised to 6.
    static char[] decrittaSemplice_A​(char[] m, java.lang.String key)
    Decryption of a string, to be coupled to what obtained with the crittaSemplice_A method.
    static void discloseError​(java.lang.String m, java.lang.String t, org.apache.log4j.Logger logger)
    Routine for externalizing an error.
    static void discloseInfo​(java.lang.String m, java.lang.String t, org.apache.log4j.Logger logger)
    Routine for externalizing an error.
    static void discloseWarning​(java.lang.String m, java.lang.String t, org.apache.log4j.Logger logger)
    Routine for the externalization of a warning.
    static void disclosing​(java.lang.String m)
    Externation of a message, exposes a sign and writes it on the sysout.
    static java.lang.String dress_A​(java.lang.String a)
    Simple routine to put two double angle quotes, before and after a string.
    static java.lang.String dress_C​(java.lang.String y)
    Simple routine to make sure that a path indication actually ends with slash or backslash.
    static java.lang.String dress_CU​(java.lang.String y)
    Simple routine to make sure that a path indication actually ends with slash.
    static java.lang.String dress_D​(java.lang.String y)
    Simple routine to make sure that the indication of a path actually ends with slash or backslash, but with different criteria compared to vesti_CU.
    static java.lang.String estraiExtension​(java.lang.String g)
    Routine to extract the extension from a file name.
    static java.io.FilenameFilter fileFilter​(java.lang.String filter)
    Implementation of the accept method for the FilenameFilter interface.
    static java.io.FilenameFilter filterDirectory()
    Implementation of the accept method for the FilenameFilter interface.
    static java.io.FilenameFilter filtroDirectory​(java.lang.String filter)
    Implementation of the accept method for the FilenameFilter interface.
    static char[] fromCharToEsadUnicode​(char[] m)
    Calculation of an array of hexadecimal codes starting from an array of Unicode characters.
    static boolean isCssColor​(java.lang.String s)
    If it is a color of those expected for CSS.
    static boolean isNothing​(java.lang.String s)
    Convenience for checking the nullity of a string.
    static java.lang.String[] like_A​(java.lang.String s)
    Given a string, it produces 3 different versions of the same:
    static java.lang.String lowercaseFirstChar​(java.lang.String g)
    First make a trim.
    static java.lang.String nonNullo​(java.lang.String s)
    Transform any null string into an empty string.
    static int nonNulloInt​(java.lang.String s)
    Turn any null string into a zero.
    static java.lang.String piastrelle​(char c, int q)
    Creation of a sequence of identical characters in quantity q.
    static java.lang.String piastrelle​(java.lang.String s, int q)
    Creation of a sequence of groups of identical characters in quantity q.
    static void ritardo0​(long thousandths)
    Simple routine to delay code execution.
    static java.lang.Boolean[] sbitta_A​(int i)
    Extracts the bits that make up an integer.
    static java.lang.String[] separaPath​(java.lang.String g)
    Given a complete file path, it produces an array of 3 strings containing respectively: the path, the file, the character (slash or backslash) that separates the path from the file.
    static java.lang.String stringaNulla​(java.lang.String s)
    Transform any empty string into a null string.
    static int stringheQ​(java.lang.String tutto, java.lang.String parte)
    Routine for counting the occurrence of a given substring in a string.
    static java.lang.String taglia​(java.lang.String s, int i)
    Cut the first n characters of a string, and if the string is shorter this method does nothing: it just returns the string.
    static java.lang.String tagliaLaCoda​(java.lang.String s, java.lang.String tail)
    Delete n characters at the bottom of a string, if they coincide with the string supplied to the second parameter.
    static int ultimaPosizione​(java.lang.String s, char t)
    Routine for finding the last occurrence of a given character in a string.
    static int ultimaPosizione​(java.lang.String s, java.lang.String t)
    Routine to find the last occurrence of a given string in a string.
    static java.lang.String un_arg​(java.lang.String[] args)
    Work around the error that occurs when using the main main "args" argument.
    static java.lang.String uppercaseFirstChar​(java.lang.String g)
    First make a trim.
    static boolean verificaIntero​(java.lang.String s)
    Routine to verify that the content of a string is an integer, compatible with the int type.
    static boolean verificaLong​(java.lang.String s)
    Routine to verify that the content of a string is an integer, compatible with the long type.
    static boolean verificaShort​(java.lang.String s)
    Routine to verify that the content of a string is an integer, compatible with the short type.
    static java.lang.Integer versionFormat_A​(java.lang.String v)
    Creation date: 2020-05-29
    Last updated: 2020-05-29
    Class: Mix

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Mix

      public Mix()
  • Method Details

    • lowercaseFirstChar

      public static java.lang.String lowercaseFirstChar​(java.lang.String g)

      First make a trim. If the first character is a capital letter, this method converts it to lower case; otherwise it does nothing.

      Creation date: 2020-04-09
      Last updated: 2020-06-20

      Modifications:

      Parameters:
      g - the complete path of file
      Returns:
      la lowercase string
    • uppercaseFirstChar

      public static java.lang.String uppercaseFirstChar​(java.lang.String g)

      First make a trim. If the first character is an lowercase letter, this method converts it to uppercase; otherwise it does nothing.

      Creation date: 2020-04-09
      Last updated: 2020-06-20

      Modifications:

      Parameters:
      g - the complete path of file
      Returns:
      la uppercase string
    • separaPath

      public static java.lang.String[] separaPath​(java.lang.String g)

      Given a complete file path, it produces an array of 3 strings containing respectively: the path, the file, the character (slash or backslash) that separates the path from the file. Example: /monte/mare/stella.bmp produces: / monte / mare, stella.bmp, /.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications:

      Parameters:
      g - the complete path of file
      Returns:
      the 3 elements produced
    • analizzaPath

      public static java.lang.String[] analizzaPath​(java.lang.String g)

      Given a complete path of files, it produces an array of 3 strings containing respectively: the path, the name of the file without extension and without final dot, the extension without initial dot. Example: /monte/mare/stella.bmp produces: / monte / mare, stella, bmp.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      g - the complete path of file
      Returns:
      the 3 elements produced
    • analizzaPathBase

      public static FileBase analizzaPathBase​(java.io.File file)

      It could have been an overload of the previous method, but the name was changed because only the type of return changes.

      Creation date: 11 apr 2019
      Last updated: 11 apr 2019

      Modifications:

      Parameters:
      file - the complete path of file
      Returns:
      i 3 elements produced
    • like_A

      public static java.lang.String[] like_A​(java.lang.String s)

      Given a string, it produces 3 different versions of the same:

      • all lowercase
      • all uppercase
      • all words with initials capital

      The text is compacted to eliminate double spaces.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications:

      Parameters:
      s - the phrase to convert
      Returns:
      the 3 elements produced
    • sbitta_A

      public static java.lang.Boolean[] sbitta_A​(int i)

      Extracts the bits that make up an integer. All the bits minus the last one, the one indicating the sign, are extracted; therefore, for a 32-bit integer, the 31 bits further left are extracted.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      i - the number to be sent
      Returns:
      the array of bits
    • piastrelle

      public static java.lang.String piastrelle​(char c, int q)

      Creation of a sequence of identical characters in quantity q.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      c - the character to be appended
      q - the amount of spaces to be appended
      Returns:
      the string of q spaces
    • piastrelle

      public static java.lang.String piastrelle​(java.lang.String s, int q)

      Creation of a sequence of groups of identical characters in quantity q. It differs from the previous one in that it accumulates groups of characters instead of a single character.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      s - the group of characters to be appended
      q - the amount of spaces to be appended
      Returns:
      the string of q spaces
    • daEsadAChar

      public static char[] daEsadAChar​(char[] m) throws ExactException

      Calculation of an array of characters starting from its hexadecimal code. We speak of ordinary characters, that is, within the ASCII set.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      m - character array to convert
      Returns:
      ordinary character array
      Throws:
      ExactException - occurs if the hexadecimal code is incorrect
    • daEsadAByte

      public static byte[] daEsadAByte​(byte[] m) throws ExactException

      Calculation of an array of characters starting from its hexadecimal code. We speak of ordinary characters, that is, within the ASCII set.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - character array to convert
      Returns:
      ordinary character array
      Throws:
      ExactException - trigger if the hexadecimal code is incorrect
    • daEsadACharUnicode

      public static char[] daEsadACharUnicode​(char[] m) throws ExactException

      Calculation of an array of characters starting from its hexadecimal code. We speak of Unicode characters, therefore 4 hexadecimal characters for each character.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - character array to convert
      Returns:
      ordinary character array
      Throws:
      ExactException - occurs if the hexadecimal code is incorrect
    • daCharAdEsad

      public static char[] daCharAdEsad​(char[] m)

      Calculation of an array of hexadecimal codes starting from an array of ordinary characters, that is, within the ASCII set. Obviously the output is twice as long.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - character array to convert
      Returns:
      lowercase hexadecimal character array
      Since:
      1.2.2
      See Also:
      "prog. bigExport_1.1.0, data class of Export", "prog. bigExport_2.0.0, data class of DiExport"
    • crittaSemplice_A

      public static char[] crittaSemplice_A​(char[] m, java.lang.String key) throws ExactException

      Encrypting a string from a key. The encrypted output is further transformed into hexadecimal. As a result, the output is twice as long.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - character array to convert
      key - encryption key
      Returns:
      encrypted character array
      Throws:
      ExactException - incorrect use
    • decrittaSemplice_A

      public static char[] decrittaSemplice_A​(char[] m, java.lang.String key) throws ExactException

      Decryption of a string, to be coupled to what obtained with the crittaSemplice_A method. The string is first transformed from hexadecimal to ASCII, then decrypted with the same key with which it was encrypted. Obviously the output is half the length.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - character array to convert
      key - encryption key
      Returns:
      encrypted character array
      Throws:
      ExactException - incorrect use
    • daLong6Char

      public static char[] daLong6Char​(long m)

      Calculation of a 6-character array of the domain [A-Z0-9] starting from a long integer not greater than 36 raised to 6.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications:

      Parameters:
      m - integer long
      Returns:
      character array of the domain [A-Z0-9 ]
    • daLong3Char

      public static char[] daLong3Char​(long m)

      Calculation of a 3-character array of the domain [A-Z0-9] starting from a long integer not exceeding 36 raised to 3.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications:

      Parameters:
      m - integer long
      Returns:
      character array of the domain [A-Z0-9 ]
      Since:
      2.0.0
    • daLong2Char

      public static char[] daLong2Char​(int m)

      Calculation of an array of 1 or 2 characters of the domain [A-Z] starting from an integer not greater than 701 (26 + 26 26 - 1).

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - number integer long
      Returns:
      domain character array [AZ]
    • fromCharToEsadUnicode

      public static char[] fromCharToEsadUnicode​(char[] m)

      Calculation of an array of hexadecimal codes starting from an array of Unicode characters.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - character array to convert
      Returns:
      lowercase hexadecimal character array
    • un_arg

      public static java.lang.String un_arg​(java.lang.String[] args)

      Work around the error that occurs when using the main main "args" argument.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      args - the same array coming from the main.
      Returns:
      a null string or the first argument.
      Since:
      1.0.0
    • dress_A

      public static final java.lang.String dress_A​(java.lang.String a)

      Simple routine to put two double angle quotes, before and after a string.

      creation date: 2020-03-10

      Parameters:
      a - the input string
      Returns:
      the string with the double angle quotes
    • dress_C

      public static java.lang.String dress_C​(java.lang.String y)

      Simple routine to make sure that a path indication actually ends with slash or backslash. If not, add it.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications:
      10/04 08: added the trim

      Parameters:
      y - the path to check
      Returns:
      the path complete with slash or backslash
    • dress_CU

      public static java.lang.String dress_CU​(java.lang.String y)

      Simple routine to make sure that a path indication actually ends with slash. If not, add it.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      y - the path to check
      Returns:
      the complete path of slash
    • dress_D

      public static java.lang.String dress_D​(java.lang.String y)

      Simple routine to make sure that the indication of a path actually ends with slash or backslash, but with different criteria compared to vesti_CU. If not, add it.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications:
      10/04 08: added the trim

      Parameters:
      y - the path to be checked
      Returns:
      the path complete with slash or backslash
    • ritardo0

      public static void ritardo0​(long thousandths)

      Simple routine to delay code execution.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      thousandths - duration of the delay in thousandths of a second
    • charQ

      public static int charQ​(java.lang.String s, char t)

      Routine to count the occurrence of a certain character in a string. It is a faster method than transforming the whole string into many characters and then counting.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      s - the string to be examined
      t - the character to be examined search for
      Returns:
      how many times
    • ultimaPosizione

      public static int ultimaPosizione​(java.lang.String s, char t)

      Routine for finding the last occurrence of a given character in a string.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      s - the string to be examined
      t - the character to be search for
      Returns:
      how many times
    • estraiExtension

      public static java.lang.String estraiExtension​(java.lang.String g)

      Routine to extract the extension from a file name. Return null if there is no extension.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications: 2020-04-09: replaced the last return from return null to return ""

      Parameters:
      g - the file name to be analyzed
      Returns:
      how many times
    • ultimaPosizione

      public static int ultimaPosizione​(java.lang.String s, java.lang.String t)

      Routine to find the last occurrence of a given string in a string.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      s - the string to be examined
      t - the string to be examined search for
      Returns:
      how many times
    • stringheQ

      public static int stringheQ​(java.lang.String tutto, java.lang.String parte)

      Routine for counting the occurrence of a given substring in a string.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      tutto - string to be examined
      parte - substring from search for
      Returns:
      how many times
    • verificaIntero

      public static boolean verificaIntero​(java.lang.String s)

      Routine to verify that the content of a string is an integer, compatible with the int type. Warning, using Pattern.matches ("\\ d +", xxxxx) I would also verify the absence of the + or - sign. I don't need to.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:
      10/11 / 08: added trim on the input parameter 2020-04-09: null possibility provided

      Parameters:
      s - string to be verified
      Returns:
      true or false if the content is numeric or not
      Since:
      1.2.2
    • verificaLong

      public static boolean verificaLong​(java.lang.String s)

      Routine to verify that the content of a string is an integer, compatible with the long type. Warning, using Pattern.matches ("\\ d +", xxxxx) I would also verify the absence of the + or - sign. I don't need to.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:
      10/11 / 08: added the trim on the input parameter 2020-04-09: null possibility provided

      Parameters:
      s - string to be verified
      Returns:
      true or false if the content is numeric or not
      Since:
      1.2.2
    • verificaShort

      public static boolean verificaShort​(java.lang.String s)
      Routine to verify that the content of a string is an integer, compatible with the short type.
      Parameters:
      s - string to check
      Returns:
      true or false if the content is numeric or not
      Since:
      1.2.2
    • fileFilter

      public static final java.io.FilenameFilter fileFilter​(java.lang.String filter)

      Implementation of the accept method for the FilenameFilter interface.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      filter - the pattern to be compared, to implement filtering
      Returns:
      a new object FilenameFilter
    • filterDirectory

      public static final java.io.FilenameFilter filterDirectory()

      Implementation of the accept method for the FilenameFilter interface.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Returns:
      a new FilenameFilter
      Since:
      1.2.1 object
    • filtroDirectory

      public static final java.io.FilenameFilter filtroDirectory​(java.lang.String filter)

      Implementation of the accept method for the FilenameFilter interface.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      filter - filter for searching
      Returns:
      a new FilenameFilter object
    • isNothing

      public static final boolean isNothing​(java.lang.String s)

      Convenience for checking the nullity of a string.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      s - the string to be checked
      Returns:
      true if the string is a null object or an empty string
    • isCssColor

      public static final boolean isCssColor​(java.lang.String s)

      If it is a color of those expected for CSS.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      s - string to evaluate
      Returns:
      true If the color to be checked is a color of those provided for the CSS
    • compactingSpaces_A

      public static java.lang.String compactingSpaces_A​(java.lang.String a)

      Compact a phrase (string) containing more than one blank between words in a phrase containing individual blanks. An alternative algorithm for obtaining an identical result is found in Strings.compatta_A (String).
      Ex: "___John__goes_to____school___"
      becomes: "John goes to school"

      Deprecated 2013- 08-29 because it is too slow, replaced with it.ramecera.salad.everyday.Strings.compatta_A.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:
      2020-04-09: added final to parameter a, and slightly modified the algorithm
      2020-04-09: added trim

      Parameters:
      a - the string to be compacted
      Returns:
      the compacted string
    • stringaNulla

      public static java.lang.String stringaNulla​(java.lang.String s)
      Transform any empty string into a null string.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      s - the string to be tested
      Returns:
      the resulting string
      Since:
      1.2.2
    • nonNullo

      public static java.lang.String nonNullo​(java.lang.String s)
      Transform any null string into an empty string.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      s - the string to be tested
      Returns:
      the resulting string
      Since:
      1.2.2
    • nonNulloInt

      public static int nonNulloInt​(java.lang.String s)
      Turn any null string into a zero.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:
      2020-04-09: changed the time with the or double

      Parameters:
      s - the string to be tested
      Returns:
      the resulting string
      Since:
      1.3.0
    • taglia

      public static java.lang.String taglia​(java.lang.String s, int i)
      Cut the first n characters of a string, and if the string is shorter this method does nothing: it just returns the string.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      s - the string to be cut
      i - how many characters you want to cut
      Returns:
      the resulting string
    • tagliaLaCoda

      public static java.lang.String tagliaLaCoda​(java.lang.String s, java.lang.String tail)

      Delete n characters at the bottom of a string, if they coincide with the string supplied to the second parameter.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Parameters:
      s - the string to be shortened
      tail - the string to be compared with the tail of the string s
      Returns:
      the resulting string
      Since:
      1.3.0, SVutensiliJ4_1.3.0
    • compattaSpazi_B

      @Deprecated public static java.lang.String compattaSpazi_B​(java.lang.String a)
      Deprecated.

      Cleans a phrase (string) clean from the characters TAB, CR, LF, FF, VT and compacts everything.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications:
      2020-04-09: the replacement must not be with a null string but with a space character

      Parameters:
      a - the string to be compacted
      Returns:
      the compacted string
      Since:
      1.4.0, toolsJ4_2.0.0
    • collapse

      public static void collapse​(java.sql.Statement[] statement, java.sql.Connection connection)

      Closes multiple statements and related connection.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      statement - the array of statements of the connection to the DB
      connection - the connection to the DB
      Since:
      salad_2.0.0
    • collapse

      public static void collapse​(java.sql.Statement statement, java.sql.Connection connection)
      Closes multiple statements and related connection.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      statement - the statement of the connection to the DB
      connection - the connection to the DB
      Since:
      salad_2.0.0
    • disclosing

      public static void disclosing​(java.lang.String m)

      Externation of a message, exposes a sign and writes it on the sysout.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Modifications:
      10/01 / 11: facilitation of braces introduced instead of corporals

      Parameters:
      m - the message
    • discloseError

      public static void discloseError​(java.lang.String m, java.lang.String t, org.apache.log4j.Logger logger)

      Routine for externalizing an error. There is no extension.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - my message
      t - message title
      logger - obvious
    • discloseInfo

      public static void discloseInfo​(java.lang.String m, java.lang.String t, org.apache.log4j.Logger logger)

      Routine for externalizing an error. There is no extension.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - my message
      t - message title
      logger - obvious
    • discloseWarning

      public static void discloseWarning​(java.lang.String m, java.lang.String t, org.apache.log4j.Logger logger)

      Routine for the externalization of a warning. There is no extension.

      Creation date: 2020-04-09
      Last updated: 2020-04-09

      Changes:

      Parameters:
      m - my message
      t - message title
      logger - obvious
    • absoluteVersion

      public static int absoluteVersion​(java.lang.String x, java.lang.String message, int code) throws ExactException

      Method to switch from a software version in the form 3, 4.2, or 2.0.11 to the form 3000000, 4002000, 2000011.

      Creation date: 2020-04-09
      data last modification: 2020-04-09

      Parameters:
      x - the string indicating the version
      message - the message to be displayed in case of irregularity
      code - error code
      Returns:
      the number representing the absolute version
      Throws:
      ExactException - ordinary exception
    • versionFormat_A

      public static java.lang.Integer versionFormat_A​(java.lang.String v)

      Creation date: 2020-05-29
      Last updated: 2020-05-29
      Class: Mix

      Parameters:
      v - the version formatted n.n.n
      Returns:
      the version as an integer