]> git.mxchange.org Git - jcustomer-core.git/commitdiff
added utilities class
authorRoland Häder <roland@mxchange.org>
Mon, 25 Apr 2016 16:13:04 +0000 (18:13 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 25 Apr 2016 16:13:04 +0000 (18:13 +0200)
src/org/mxchange/jcustomercore/utils/CustomerUtils.java [new file with mode: 0644]

diff --git a/src/org/mxchange/jcustomercore/utils/CustomerUtils.java b/src/org/mxchange/jcustomercore/utils/CustomerUtils.java
new file mode 100644 (file)
index 0000000..c26bccd
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2016 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcustomercore.utils;
+
+import java.security.SecureRandom;
+import java.util.Random;
+
+/**
+ * Customer utilities
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
+ */
+public class CustomerUtils {
+
+       /**
+        * Random number generator
+        */
+       private static final Random RANDOM_NUMBER_GENERATOR;
+
+       /**
+        * Static initializer
+        */
+       static {
+               // Init RNG
+               RANDOM_NUMBER_GENERATOR = new SecureRandom();
+       }
+
+       /**
+        * Generates a random customer number with some dashes in it
+        * <p>
+        * @param length Length of the number
+        * <p>
+        * @return Generated customer number
+        */
+       public static String generateCustomerNumber (final long length) {
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+       }
+
+       /**
+        * No constructors for utiltity classes
+        */
+       private CustomerUtils () {
+       }
+
+}