- Sort Score
- Result 10 results
- Languages All
Results 551 - 560 of 1,434 for created (0.06 sec)
-
UnsignedInts.java
flip(b)); L72: } L73: L74: /** L75: * Returns the value of the given {@code int} as a {@code long}, when treated as unsigned. L76: * L77: * <p><b>Java 8+ users:</b> use {@link Integer#toUnsignedLong(int)} instead. L78: */ L79: public static long toLong(int value) { L80: return value & INT_MASK; L81: } L82: L83: /** L84: * Returns the {@code int} value that, when treated as unsigned, is equal to {@code value}, if L85: * possible. L86: * L87: * @param value a value between 0...github.com/google/guava/guava/src/com/google/co...Wed Oct 30 21:17:54 UTC 2024 13.7K bytes -
ImmutableListMultimapTest.java
assertEquals(7, multimap.size()); L190: } L191: L192: public void testBuilderPutAllMultimap() { L193: Multimap<String, Integer> toPut = LinkedListMultimap.create(); L194: toPut.put("foo", 1); L195: toPut.put("bar", 4); L196: toPut.put("foo", 2); L197: toPut.put("foo", 3); L198: Multimap<String, Integer> moreToPut = LinkedListMultimap.create(); L199: moreToPut.put("foo", 6); L200: moreToPut.put("bar", 5); L201: moreToPut.put("foo", 7); L202: ImmutableListMultimap.Builder<String,...github.com/google/guava/android/guava-tests/tes...Wed Oct 30 16:15:19 UTC 2024 23.8K bytes -
SortedMapGenerators.java
L44:@GwtCompatible L45:@ElementTypesAreNonnullByDefault L46:public class SortedMapGenerators { L47: public static class ImmutableSortedMapGenerator extends TestStringSortedMapGenerator { L48: @Override L49: public SortedMap<String, String> create(Entry<String, String>[] entries) { L50: ImmutableSortedMap.Builder<String, String> builder = ImmutableSortedMap.naturalOrder(); L51: for (Entry<String, String> entry : entries) { L52: checkNotNull(entry); L53: builder.put(entry.getKey(),...github.com/google/guava/android/guava-testlib/s...Sat Oct 19 00:05:46 UTC 2024 4.6K bytes -
TransposedTableTest.java
@Override L34: protected Table<String, Integer, Character> create(@Nullable Object... data) { L35: Table<Integer, String, Character> original = HashBasedTable.create(); L36: Table<String, Integer, Character> table = transpose(original); L37: table.clear(); L38: populate(table, data); L39: return table; L40: } L41: L42: public void testTransposeTransposed() { L43: Table<Integer, String, Character> original = HashBasedTable.create(); L44: assertSame(original, transpose(transpose(original)));...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 2.8K bytes -
MinMaxPriorityQueueBenchmark.java
eredBy(comparator).create(); L104: } L105: }, L106: PRIORITY_QUEUE { L107: @Override L108: public Queue<Integer> create(Comparator<Integer> comparator) { L109: return new PriorityQueue<>(11, comparator); L110: } L111: }, L112: INVERTED_MIN_MAX { L113: @Override L114: public Queue<Integer> create(Comparator<Integer> comparator) { L115: return new InvertedMinMaxPriorityQueue<>(comparator); L116: } L117: }; L118: L119: public abstract...github.com/google/guava/android/guava-tests/ben...Wed Apr 19 19:24:36 UTC 2023 4.3K bytes -
HttpDateTest.kt
JUNK".toHttpDateOrNull()!!.time).isEqualTo(0L) L75: // Missing timezones treated as bad. L76: assertThat("Thu, 01 Jan 1970 00:00:00".toHttpDateOrNull()).isNull() L77: // Missing seconds treated as bad. L78: assertThat("Thu, 01 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull() L79: // Extra spaces treated as bad. L80: assertThat("Thu, 01 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull() L81: // Missing leading zero treated as bad. L82: assertThat("Thu, 1 Jan 1970 00:00 GMT".toHttpDateOrNull()).isNull()...github.com/square/okhttp/okhttp/src/test/java/o...Mon Jan 08 01:13:22 UTC 2024 3.9K bytes -
EmptyImmutableTableTest.java
assertEquals(0, INSTANCE.hashCode()); L40: } L41: L42: public void testEqualsObject() { L43: Table<Character, Integer, String> nonEmptyTable = HashBasedTable.create(); L44: nonEmptyTable.put('A', 1, "blah"); L45: L46: new EqualsTester() L47: .addEqualityGroup(INSTANCE, HashBasedTable.create(), TreeBasedTable.create()) L48: .addEqualityGroup(nonEmptyTable) L49: .testEquals(); L50: } L51: L52: @GwtIncompatible // ArrayTable L53: public void testEqualsObjectNullValues()...github.com/google/guava/android/guava-tests/tes...Mon Feb 19 20:34:55 UTC 2024 3.2K bytes -
BenchmarkHelpers.java
HashMultiset.create(contents); L298: } L299: }, L300: LinkedHashMultisetImpl { L301: @Override L302: public <E extends Comparable<E>> Multiset<E> create(Collection<E> contents) { L303: return LinkedHashMultiset.create(contents); L304: } L305: }, L306: ConcurrentHashMultisetImpl { L307: @Override L308: public <E extends Comparable<E>> Multiset<E> create(Collection<E> contents) { L309: return ConcurrentHashMultiset.create(contents); L310: } L311:...github.com/google/guava/android/guava-tests/tes...Wed Oct 30 16:15:19 UTC 2024 12.4K bytes -
BenchmarkHelpers.java
HashMultiset.create(contents); L298: } L299: }, L300: LinkedHashMultisetImpl { L301: @Override L302: public <E extends Comparable<E>> Multiset<E> create(Collection<E> contents) { L303: return LinkedHashMultiset.create(contents); L304: } L305: }, L306: ConcurrentHashMultisetImpl { L307: @Override L308: public <E extends Comparable<E>> Multiset<E> create(Collection<E> contents) { L309: return ConcurrentHashMultiset.create(contents); L310: } L311:...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 12.4K bytes -
AdminBadwordAction.java
L238: // Actually Crud L239: // ------------- L240: @Execute L241: @Secured({ ROLE }) L242: public HtmlResponse create(final CreateForm form) { L243: verifyCrudMode(form.crudMode, CrudMode.CREATE); L244: validate(form, messages -> {}, this::asEditHtml); L245: verifyToken(this::asEditHtml); L246: getBadWord(form).ifPresent(entity -> { L247: try { L248: ...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 16.2K bytes