Repository: commons-rng
Updated Branches:
  refs/heads/master 44c38a476 -> 88776e4fc


Unused class.

Duplicates functionality in "Long2IntArray".


Project: http://git-wip-us.apache.org/repos/asf/commons-rng/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rng/commit/9cb29afa
Tree: http://git-wip-us.apache.org/repos/asf/commons-rng/tree/9cb29afa
Diff: http://git-wip-us.apache.org/repos/asf/commons-rng/diff/9cb29afa

Branch: refs/heads/master
Commit: 9cb29afa0c2e533992c88b717b3759b2f41eb9bd
Parents: 44c38a4
Author: Gilles <er...@apache.org>
Authored: Mon Aug 29 00:48:37 2016 +0200
Committer: Gilles <er...@apache.org>
Committed: Mon Aug 29 00:48:37 2016 +0200

----------------------------------------------------------------------
 .../commons/rng/internal/util/LongMixInt.java   | 50 --------------------
 1 file changed, 50 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/9cb29afa/src/main/java/org/apache/commons/rng/internal/util/LongMixInt.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/internal/util/LongMixInt.java 
b/src/main/java/org/apache/commons/rng/internal/util/LongMixInt.java
deleted file mode 100644
index 4622cf4..0000000
--- a/src/main/java/org/apache/commons/rng/internal/util/LongMixInt.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.commons.rng.internal.util;
-
-import org.apache.commons.rng.internal.source64.SplitMix64;
-
-/**
- * Uses a {@code long} value to seed a {@link SplitMix64} RNG and
- * create an {@code int[]} with the requested number of random
- * values.
- *
- * @since 1.0
- */
-public class LongMixInt implements SeedConverter<Long, int[]> {
-    /** Size of the output array. */
-    private final int size;
-
-    /**
-     * @param size Size of the output array.
-     */
-    public LongMixInt(int size) {
-        this.size = size;
-    }
-
-    /** {@inheritDoc} */
-    @Override
-    public int[] convert(Long seed) {
-        return SeedFactory.createIntArray(size, new SplitMix64(seed));
-    }
-
-    /** {@inheritDoc} */
-    @Override
-    public String toString() {
-        return getClass().getSimpleName() + "(size=" + size + ")";
-    }
-}

Reply via email to