- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 315 for asArray (0.18 sec)
-
src/main/java/org/codelibs/core/collection/ArrayUtil.java
public static <T> List<T> toList(final Object array) { assertArgumentNotNull("array", array); assertArgument("array", array.getClass().isArray(), MessageFormatter.getSimpleMessage("ECL0104", array)); final int length = Array.getLength(array); final List<Object> list = newArrayList(length); for (int i = 0; i < length; i++) { list.add(Array.get(array, i)); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 42.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/ArrayUtilTest.java
assertThat(ArrayUtil.addAll(emptyArray, array), is(sameInstance(array))); assertThat(ArrayUtil.addAll(array, emptyArray), is(sameInstance(array))); } /** * @throws Exception */ @Test public void testAdd_int() throws Exception { final int[] array = new int[] { 1 }; final int[] newArray = ArrayUtil.add(array, 2); assertThat(newArray.length, is(2));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 10.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/AssertionUtil.java
if (argValue < 0) { throw new ClIllegalArgumentException(argName, "ECL0014", asArray(argName)); } if (argValue >= arraySize) { throw new ClIllegalArgumentException(argName, "ECL0015", asArray(argName, arraySize)); } } /** * 引数が不正でないことを表明します。 * * @param argName
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 12.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTest.java
assertThat(stats.count()).isEqualTo(stream(array).count()); assertEquivalent(stats.mean(), stream(array).average().getAsDouble()); assertEquivalent(stats.sum(), stream(array).sum()); assertEquivalent(stats.max(), stream(array).max().getAsDouble()); assertEquivalent(stats.min(), stream(array).min().getAsDouble()); // static method on Stats vs on instance method on DoubleStream
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 33.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/log/Logger.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.log; import static org.codelibs.core.collection.ArrayUtil.asArray; import static org.codelibs.core.collection.CollectionsUtil.newHashMap; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 13.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/FieldUtil.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.lang; import static org.codelibs.core.collection.ArrayUtil.asArray; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.lang.reflect.Type;
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 11.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/TraversalUtil.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.io; import static org.codelibs.core.collection.ArrayUtil.asArray; import static org.codelibs.core.collection.CollectionsUtil.newArrayList; import static org.codelibs.core.collection.CollectionsUtil.newConcurrentHashMap; import static org.codelibs.core.collection.CollectionsUtil.newHashSet;
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 19.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
// For datasets of many double values created from an array, we test many combinations of // finite and non-finite values: for (ManyValues values : ALL_MANY_VALUES) { StatsAccumulator accumulator = new StatsAccumulator(); StatsAccumulator accumulatorByAddAllStats = new StatsAccumulator(); accumulator.addAll(values.asArray()); for (double value : values.asIterable()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 36.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java
// For datasets of many double values created from an array, we test many combinations of // finite and non-finite values: for (ManyValues values : ALL_MANY_VALUES) { StatsAccumulator accumulator = new StatsAccumulator(); StatsAccumulator accumulatorByAddAllStats = new StatsAccumulator(); accumulator.addAll(values.asArray()); for (double value : values.asIterable()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 36.8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14.1K bytes - Viewed (0)