- Sort Score
- Result 10 results
- Languages All
Results 421 - 430 of 1,875 for isobject (0.06 sec)
-
ChainBenchmark.java
L31:public class ChainBenchmark { L32: L33: @Param({"1", "2", "3", "4", "5", "6"}) L34: int length; L35: L36: private Segment<Object, Object> segment; L37: private ReferenceEntry<Object, Object> head; L38: private @Nullable ReferenceEntry<Object, Object> chain; L39: L40: @SuppressWarnings("GuardedBy") L41: @BeforeExperiment L42: void setUp() { L43: LocalCache<Object, Object> cache = L44: new LocalCache<>(CacheBuilder.newBuilder().concurrencyLevel(1), null); L45: segment = cache.segments[0];...github.com/google/guava/guava-tests/benchmark/c...Mon Apr 17 15:19:38 UTC 2023 2.1K bytes -
GcFinalizationTest.java
assertTrue(future.isCancelled()); L90: } L91: L92: public void testAwaitClear() { L93: final WeakReference<Object> ref = new WeakReference<>(new Object()); L94: GcFinalization.awaitClear(ref); L95: assertNull(ref.get()); L96: } L97: L98: public void testAwaitDone_finalizationPredicate() { L99: final WeakHashMap<Object, Object> map = new WeakHashMap<>(); L100: map.put(new Object(), Boolean.TRUE); L101: GcFinalization.awaitDone( L102: new FinalizationPredicate() { L103: ...github.com/google/guava/android/guava-testlib/t...Thu Oct 17 02:42:09 UTC 2024 7.9K bytes -
ForwardingSortedMap.java
NoSuchElementException | NullPointerException e) { L139: return false; L140: } L141: } L142: L143: /** L144: * A sensible default implementation of {@link #subMap(Object, Object)} in terms of {@link L145: * #headMap(Object)} and {@link #tailMap(Object)}. In some situations, you may wish to override L146: * {@link #subMap(Object, Object)} to forward to this implementation. L147: * L148: * @since 7.0 L149: */ L150: protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) { L151: ch...github.com/google/guava/android/guava/src/com/g...Fri May 12 15:26:39 UTC 2023 5.6K bytes -
TreeMultiset.java
* Comparable#compareTo} or {@link Comparator#compare} instead of {@link Object#equals} to determine L47: * equivalence of instances. L48: * L49: * <p><b>Warning:</b> The comparison must be <i>consistent with equals</i> as explained by the L50: * {@link Comparable} class specification. Otherwise, the resulting multiset will violate the {@link L51: * java.util.Collection} contract, which is specified in terms of {@link Object#equals}. L52: * L53: * <p>See the Guava User Guide article on <a href= L54:...github.com/google/guava/android/guava/src/com/g...Fri Oct 18 20:24:49 UTC 2024 34.1K bytes -
CompactHashSet.java
position. L484: */ L485: void moveLastEntry(int dstIndex, int mask) { L486: Object table = requireTable(); L487: int[] entries = requireEntries(); L488: @Nullable Object[] elements = requireElements(); L489: int srcIndex = size() - 1; L490: if (dstIndex < srcIndex) { L491: // move last entry to deleted spot L492: Object object = elements[srcIndex]; L493: elements[dstIndex] = object; L494: elements[srcIndex] = null; L495: L496: // move the last entry to the...github.com/google/guava/guava/src/com/google/co...Fri Oct 18 20:24:49 UTC 2024 24.9K bytes -
SynchronizedTableTest.java
Table<R, C, V>, Serializable { L27: final Table<R, C, V> delegate = HashBasedTable.create(); L28: public final Object mutex = new Object[0]; // something Serializable L29: L30: @Override L31: public String toString() { L32: assertTrue(Thread.holdsLock(mutex)); L33: return delegate.toString(); L34: } L35: L36: @Override L37: public boolean equals(@Nullable Object o) { L38: assertTrue(Thread.holdsLock(mutex)); L39: return delegate.equals(o); L40: } L41: L42: ...github.com/google/guava/android/guava-tests/tes...Tue Aug 06 17:23:04 UTC 2024 4.6K bytes -
BsFavoriteLogBhv.java
"favorite_log"; L65: } L66: L67: @Override L68: public FavoriteLogDbm asDBMeta() { L69: return FavoriteLogDbm.getInstance(); L70: } L71: L72: @Override L73: protected <RESULT extends FavoriteLog> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) { L74: try { L75: final RESULT result = entityType.newInstance(); L76: result.setCreatedAt(toLocalDateTime(source.get("createdAt"))); L77: result.setDocId(DfType...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 9.5K bytes -
BsRoleBhv.java
asEsSearchType() { L64: return "role"; L65: } L66: L67: @Override L68: public RoleDbm asDBMeta() { L69: return RoleDbm.getInstance(); L70: } L71: L72: @Override L73: protected <RESULT extends Role> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) { L74: try { L75: final RESULT result = entityType.newInstance(); L76: result.setName(DfTypeUtil.toString(source.get("name"))); L77: return updateEntity(source, result);...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 8.8K bytes -
BsBadWordBhv.java
return "bad_word"; L65: } L66: L67: @Override L68: public BadWordDbm asDBMeta() { L69: return BadWordDbm.getInstance(); L70: } L71: L72: @Override L73: protected <RESULT extends BadWord> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) { L74: try { L75: final RESULT result = entityType.newInstance(); L76: result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy"))); L77: result.setCreatedT...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 9.4K bytes -
BsCrawlingInfoParamBhv.java
} L66: L67: @Override L68: public CrawlingInfoParamDbm asDBMeta() { L69: return CrawlingInfoParamDbm.getInstance(); L70: } L71: L72: @Override L73: protected <RESULT extends CrawlingInfoParam> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) { L74: try { L75: final RESULT result = entityType.newInstance(); L76: result.setCrawlingInfoId(DfTypeUtil.toString(source.get("crawlingInfoId"))); L77: result.s...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 9.8K bytes