- Sort Score
- Result 10 results
- Languages All
Results 581 - 590 of 1,456 for created (0.04 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 -
MinMaxPriorityQueueTest.java
est.class); L73: suite.addTest( L74: QueueTestSuiteBuilder.using( L75: new TestStringQueueGenerator() { L76: @Override L77: protected Queue<String> create(String[] elements) { L78: return MinMaxPriorityQueue.create(asList(elements)); L79: } L80: }) L81: .named("MinMaxPriorityQueue") L82: .withFeatures(CollectionSize.ANY, CollectionFeature.GENERAL_PURPOSE) L83: ...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 35.9K bytes -
AtomicLongMapTest.java
ongMap.class); L48: tester.testAllPublicStaticMethods(AtomicLongMap.class); L49: AtomicLongMap<Object> map = AtomicLongMap.create(); L50: tester.testAllPublicInstanceMethods(map); L51: } L52: L53: public void testCreate_map() { L54: Map<String, Long> in = ImmutableMap.of("1", 1L, "2", 2L, "3", 3L); L55: AtomicLongMap<String> map = AtomicLongMap.create(in); L56: assertFalse(map.isEmpty()); L57: assertEquals(3, map.size()); L58: assertTrue(map.containsKey("1")); L59: a...github.com/google/guava/android/guava-tests/tes...Tue Feb 13 14:28:25 UTC 2024 17.4K bytes -
UuidUtilTest.java
@author higa L22: * L23: */ L24:public class UuidUtilTest extends TestCase { L25: L26: /** L27: * Test method for {@link org.codelibs.core.net.UuidUtil#create()}. L28: */ L29: public void testCreate() { L30: final String uuid = UuidUtil.create(); L31: System.out.println(uuid); L32: final String uuid2 = UuidUtil.create(); L33: System.out.println(uuid2); L34: assertFalse(uuid.equals(uuid2)); L35: } L36:}...github.com/codelibs/corelib/src/test/java/org/c...Thu Mar 07 01:59:08 UTC 2024 1.1K 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 -
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 -
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 -
InitialContextUtil.java
初期コンテキスト}を扱うためのユーティリティ・クラスです。 L30: * L31: * @author higa L32: */ L33:public abstract class InitialContextUtil { L34: L35: /** L36: * 初期コンテキストを作成して返します。 L37: * L38: * @return 初期コンテキスト L39: */ L40: public static InitialContext create() { L41: try { L42: return new InitialContext(); L43: } catch (final NamingException ex) { L44: throw new NamingRuntimeException(ex); L45: } L46: } L47: L48: /** L49: * 指定した環境を使用して初期コンテキストを作成して返します。...github.com/codelibs/corelib/src/main/java/org/c...Thu Mar 07 01:59:08 UTC 2024 3K bytes -
MinMaxPriorityQueueTest.java
est.class); L73: suite.addTest( L74: QueueTestSuiteBuilder.using( L75: new TestStringQueueGenerator() { L76: @Override L77: protected Queue<String> create(String[] elements) { L78: return MinMaxPriorityQueue.create(asList(elements)); L79: } L80: }) L81: .named("MinMaxPriorityQueue") L82: .withFeatures(CollectionSize.ANY, CollectionFeature.GENERAL_PURPOSE) L83: ...github.com/google/guava/android/guava-tests/tes...Wed Oct 30 16:15:19 UTC 2024 35.9K bytes -
TreeMultimapNaturalTest.java
alTest.class); L268: return suite; L269: } L270: L271: protected SetMultimap<String, Integer> create() { L272: return TreeMultimap.create(); L273: } L274: L275: /** Create and populate a {@code TreeMultimap} with the natural ordering of keys and values. */ L276: private TreeMultimap<String, Integer> createPopulate() { L277: TreeMultimap<String, Integer> multimap = TreeMultimap.create(); L278: multimap.put("google", 2); L279: multimap.put("google", 6); L280: multimap.put("foo",...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 22.3K bytes