commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject [2/2] commons-rng git commit: Unused class.
Date Sun, 28 Aug 2016 20:52:09 GMT
Unused class.

Duplicates functionality in "Long2LongArray".


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

Branch: refs/heads/master
Commit: 88776e4fc6927c37c05856ae5bf21419330c463c
Parents: 9cb29af
Author: Gilles <erans@apache.org>
Authored: Mon Aug 29 00:50:18 2016 +0200
Committer: Gilles <erans@apache.org>
Committed: Mon Aug 29 00:50:18 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/commons-rng/blob/88776e4f/src/main/java/org/apache/commons/rng/internal/util/LongMixLong.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/rng/internal/util/LongMixLong.java b/src/main/java/org/apache/commons/rng/internal/util/LongMixLong.java
deleted file mode 100644
index 197dd1c..0000000
--- a/src/main/java/org/apache/commons/rng/internal/util/LongMixLong.java
+++ /dev/null
@@ -1,56 +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 a {@code long[]} with the requested number of random
- * values.
- *
- * @since 1.0
- */
-public class LongMixLong implements SeedConverter<Long, long[]> {
-    /** Size of the output array. */
-    private final int size;
-
-    /**
-     * @param size Size of the output array.
-     */
-    public LongMixLong(int size) {
-        this.size = size;
-    }
-
-    /** {@inheritDoc} */
-    @Override
-    public long[] convert(Long seed) {
-        final long[] out = new long[size];
-        final SplitMix64 rng = new SplitMix64(seed);
-        for (int i = 0; i < size; i++) {
-            out[i] = rng.nextLong();
-        }
-
-        return out;
-    }
-
-    /** {@inheritDoc} */
-    @Override
-    public String toString() {
-        return getClass().getSimpleName() + "(size: " + size + ")";
-    }
-}


Mime
View raw message