- Sort Score
- Result 10 results
- Languages All
Results 581 - 590 of 1,961 for isobject (0.04 sec)
-
Helpers.java
of Objects.equal L53: static boolean equal(@Nullable Object a, @Nullable Object b) { L54: return a == b || (a != null && a.equals(b)); L55: } L56: L57: // Clone of Lists.newArrayList L58: public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) { L59: List<E> list = new ArrayList<>(); L60: addAll(list, elements); L61: return list; L62: } L63: L64: public static <E extends @Nullable Object> List<E> copyToList(E[] elements) { L65: return co...github.com/google/guava/android/guava-testlib/s...Wed Oct 30 16:15:19 UTC 2024 17.5K bytes -
Multiset.java
L336: L337: // Comparison and hashing L338: L339: /** L340: * Compares the specified object with this multiset for equality. Returns {@code true} if the L341: * given object is also a multiset and contains equal elements with equal counts, regardless of L342: * order. L343: */ L344: @Override L345: // TODO(kevinb): caveats about equivalence-relation? L346: boolean equals(@CheckForNull Object object); L347: L348: /** L349: * Returns the hash code for this multiset. This is defined as...github.com/google/guava/android/guava/src/com/g...Sat Jun 17 14:40:53 UTC 2023 19.7K bytes -
TreeRangeMap.java
// This RangeMap is immutable. L411: private static final RangeMap<Comparable<?>, Object> EMPTY_SUB_RANGE_MAP = L412: new RangeMap<Comparable<?>, Object>() { L413: @Override L414: @CheckForNull L415: public Object get(Comparable<?> key) { L416: return null; L417: } L418: L419: @Override L420: @CheckForNull L421: public Entry<Range<Comparable<?>>, Object> getEntry(Comparable<?> key) { L422: return null; L423: } L424: L425:...github.com/google/guava/guava/src/com/google/co...Wed Oct 30 16:15:19 UTC 2024 26.7K bytes -
SearchListTests.java
void testUpdate() { L100: L101: // Test: update settings api L102: final Map<String, Object> updateMap = getUpdateMap(); L103: final Map<String, Object> searchBody = createSearchBody(SEARCH_ALL_NUM); L104: List<Map<String, Object>> settings = getItemList(searchBody); L105: L106: for (Map<String, Object> setting : settings) { L107: final Map<String, Object> requestBody = new HashMap<>(updateMap); L108: final String idKey = getIdKey(); L109: L110:...github.com/codelibs/fess/src/test/java/org/code...Thu Feb 22 01:37:57 UTC 2024 4.5K bytes -
InternersTest.java
assertThrows(NullPointerException.class, () -> pool.intern(null)); L48: } L49: L50: public void testStrong_builder() { L51: int concurrencyLevel = 42; L52: Interner<Object> interner = L53: Interners.newBuilder().strong().concurrencyLevel(concurrencyLevel).build(); L54: InternerImpl<Object> internerImpl = (InternerImpl<Object>) interner; L55: assertEquals(Strength.STRONG, internerImpl.map.keyStrength()); L56: } L57: L58: public void testWeak_simplistic() { L59: String canonical =...github.com/google/guava/guava-tests/test/com/go...Wed Jul 24 22:09:38 UTC 2024 4K bytes -
ForwardingObject.java
<i>not</i> forward the {@code hashCode} and {@code equals} methods through to L28: * the backing object, but relies on {@code Object}'s implementation. This is necessary to preserve L29: * the symmetry of {@code equals}. Custom definitions of equality are usually based on an interface, L30: * such as {@code Set} or {@code List}, so that the implementation of {@code equals} can cast the L31: * object being tested for equality to the custom interface. {@code ForwardingObject} implements no L32: * such...github.com/google/guava/guava/src/com/google/co...Tue Jun 29 19:42:21 UTC 2021 3K bytes -
BsBoostDocumentRule.java
Source L78: // ====== L79: @Override L80: public Map<String, Object> toSource() { L81: Map<String, Object> sourceMap = new HashMap<>(); L82: if (boostExpr != null) { L83: addFieldToSource(sourceMap, "boostExpr", boostExpr); L84: } L85: if (createdBy != null) { L86: addFieldToSource(sourceMap,...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 6.7K bytes -
BsRoleType.java
Source L78: // ====== L79: @Override L80: public Map<String, Object> toSource() { L81: Map<String, Object> sourceMap = new HashMap<>(); L82: if (createdBy != null) { L83: addFieldToSource(sourceMap, "createdBy", createdBy); L84: } L85: if (createdTime != null) { L86: addFieldToSource(sourceMap,...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 6.5K bytes -
ThreadInterruptTest.kt
some platforms can have large buffers that mean writes do not block when L55: // required. These socket factories explicitly set the buffer sizes on sockets created. L56: server = MockWebServer() L57: server.serverSocketFactory = L58: object : DelegatingServerSocketFactory(getDefault()) { L59: @Throws(SocketException::class) L60: override fun configureServerSocket(serverSocket: ServerSocket): ServerSocket { L61: serverSocket.setReceiveBufferSize(SOCKET_BUFFER_SIZE)...github.com/square/okhttp/okhttp/src/test/java/o...Mon Jan 08 01:13:22 UTC 2024 4.6K bytes -
ShortConversionUtil.java
* @return 変換された{@link Short} L36: */ L37: public static Short toShort(final Object o) { L38: return toShort(o, null); L39: } L40: L41: /** L42: * {@link Short}に変換します。 L43: * L44: * @param o L45: * 変換元のオブジェクト L46: * @param pattern L47: * パターン文字列 L48: * @return 変換された{@link Short} L49: */ L50: public static Short toShort(final Object o, final String pattern) { L51: if (o == null) { L52: return null; L53:...github.com/codelibs/corelib/src/main/java/org/c...Thu Mar 07 01:59:08 UTC 2024 3.8K bytes