- Sort Score
- Result 10 results
- Languages All
Results 361 - 370 of 1,434 for created (0.04 sec)
-
TestUnhashableCollectionGenerator.java
new Unhashables(); L36: } L37: L38: @Override L39: public T create(Object... elements) { L40: UnhashableObject[] array = createArray(elements.length); L41: int i = 0; L42: for (Object e : elements) { L43: array[i++] = (UnhashableObject) e; L44: } L45: return create(array); L46: } L47: L48: /** L49: * Creates a new collection containing the given elements; implement this method instead of {@link L50: * #create(Object...)}. L51: */ L52: protected abstract T create(UnhashableObject[]...github.com/google/guava/guava-testlib/src/com/g...Wed Feb 21 16:49:06 UTC 2024 1.9K bytes -
TestContainerGenerator.java
populates its container with. */ L36: SampleElements<E> samples(); L37: L38: /** L39: * Creates a new container containing the given elements. TODO: would be nice to figure out how to L40: * use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an L41: * array of the erased type. L42: */ L43: T create(Object... elements); L44: L45: /** L46: * Helper method to create an array of the appropriate type used by this generator. The returned L47: * array will...github.com/google/guava/android/guava-testlib/s...Wed Feb 21 16:49:06 UTC 2024 2.4K bytes -
GcFinalization.java
void testFooLeak() { L93: * GcFinalization.awaitClear(fooWeakRef()); L94: * } L95: * }</pre> L96: * L97: * <p>This class cannot currently be used to test soft references, since this class does not try to L98: * create the memory pressure required to cause soft references to be cleared. L99: * L100: * <p>This class only provides testing utilities. It is not designed for direct use in production or L101: * for benchmarking. L102: * L103: * @author mike nonemacher L104: * @author Martin Buchholz L105:...github.com/google/guava/guava-testlib/src/com/g...Sat Oct 19 00:26:48 UTC 2024 11.6K bytes -
AbstractTableReadTest.java
Integer, Character> hashCopy = L127: HashBasedTable.create((Table<String, Integer, ? extends Character>) table); L128: Table<String, Integer, C> reordered = create("foo", 3, 'c', "foo", 1, 'a', "bar", 1, 'b'); L129: Table<String, Integer, C> smaller = create("foo", 1, 'a', "bar", 1, 'b'); L130: Table<String, Integer, C> swapOuter = create("bar", 1, 'a', "foo", 1, 'b', "bar", 3, 'c'); L131: Table<String, Integer, C> swapValues = create("foo", 1, 'c', "bar", 1, 'b', "foo", 3, 'a'); L132:...github.com/google/guava/android/guava-tests/tes...Tue Oct 15 17:36:06 UTC 2024 6.6K bytes -
ShortArrayAsListTest.java
} L129: L130: @Override L131: public List<Short> create(Object... elements) { L132: Short[] array = new Short[elements.length]; L133: short i = 0; L134: for (Object e : elements) { L135: array[i++] = (Short) e; L136: } L137: return create(array); L138: } L139: L140: /** L141: * Creates a new collection containing the given elements; implement this method instead of L142: * {@link #create(Object...)}. L143: */ L144: protected abstract List<Short>...github.com/google/guava/android/guava-tests/tes...Thu Jun 01 09:32:35 UTC 2023 5.6K bytes -
LongArrayAsListTest.java
L128: } L129: L130: @Override L131: public List<Long> create(Object... elements) { L132: Long[] array = new Long[elements.length]; L133: int i = 0; L134: for (Object e : elements) { L135: array[i++] = (Long) e; L136: } L137: return create(array); L138: } L139: L140: /** L141: * Creates a new collection containing the given elements; implement this method instead of L142: * {@link #create(Object...)}. L143: */ L144: protected abstract List<Long>...github.com/google/guava/android/guava-tests/tes...Thu Jun 01 09:32:35 UTC 2023 5.5K bytes -
ShortArrayAsListTest.java
} L129: L130: @Override L131: public List<Short> create(Object... elements) { L132: Short[] array = new Short[elements.length]; L133: short i = 0; L134: for (Object e : elements) { L135: array[i++] = (Short) e; L136: } L137: return create(array); L138: } L139: L140: /** L141: * Creates a new collection containing the given elements; implement this method instead of L142: * {@link #create(Object...)}. L143: */ L144: protected abstract List<Short>...github.com/google/guava/guava-tests/test/com/go...Thu Jun 01 09:32:35 UTC 2023 5.6K bytes -
CharArrayAsListTest.java
L130: @Override L131: public List<Character> create(Object... elements) { L132: Character[] array = new Character[elements.length]; L133: int i = 0; L134: for (Object e : elements) { L135: array[i++] = (Character) e; L136: } L137: return create(array); L138: } L139: L140: /** L141: * Creates a new collection containing the given elements; implement this method instead of L142: * {@link #create(Object...)}. L143: */ L144: protected abstract...github.com/google/guava/guava-tests/test/com/go...Thu Jun 01 09:32:35 UTC 2023 5.7K bytes -
FloatArrayAsListTest.java
} L129: L130: @Override L131: public List<Float> create(Object... elements) { L132: Float[] array = new Float[elements.length]; L133: int i = 0; L134: for (Object e : elements) { L135: array[i++] = (Float) e; L136: } L137: return create(array); L138: } L139: L140: /** L141: * Creates a new collection containing the given elements; implement this method instead of L142: * {@link #create(Object...)}. L143: */ L144: protected abstract List<Float>...github.com/google/guava/android/guava-tests/tes...Thu Jun 01 09:32:35 UTC 2023 5.6K bytes -
FloatArrayAsListTest.java
} L129: L130: @Override L131: public List<Float> create(Object... elements) { L132: Float[] array = new Float[elements.length]; L133: int i = 0; L134: for (Object e : elements) { L135: array[i++] = (Float) e; L136: } L137: return create(array); L138: } L139: L140: /** L141: * Creates a new collection containing the given elements; implement this method instead of L142: * {@link #create(Object...)}. L143: */ L144: protected abstract List<Float>...github.com/google/guava/guava-tests/test/com/go...Thu Jun 01 09:32:35 UTC 2023 5.6K bytes