- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 1,610 for instanceof (0.07 seconds)
-
src/test/java/org/codelibs/fess/exception/ScriptEngineExceptionTest.java
// Test that ScriptEngineException is an instance of FessSystemException ScriptEngineException exception = new ScriptEngineException("test"); assertTrue(exception instanceof FessSystemException); assertTrue(exception instanceof RuntimeException); assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java
InvalidAccessTokenException exception = new InvalidAccessTokenException(type, message); assertTrue(exception instanceof FessSystemException); assertTrue(exception instanceof RuntimeException); assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } @Test public void test_throwAndCatch() { // Test throwing and catching the exception
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Predicates.java
* example, {@code instanceOf(ArrayList.class)} will yield different results for the two equal * instances {@code Lists.newArrayList(1)} and {@code Arrays.asList(1)}. * * <p><b>Discouraged:</b> Prefer using {@code clazz::isInstance} or {@code x -> x instanceof * Clazz}, but note that lambdas do not have human-readable {@link #toString()} representationsCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java
assertEquals(original, copy); assertTrue(copy instanceof ImmutableSet); return copy; } @CanIgnoreReturnValue @GwtIncompatible // SerializableTester static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) { Multiset<E> copy = reserialize(original); assertEquals(original, copy); assertTrue(copy instanceof ImmutableMultiset); return copy; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Multimaps.java
Collection<E> collection) { if (collection instanceof NavigableSet) { return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection); } else if (collection instanceof SortedSet) { return Collections.unmodifiableSortedSet((SortedSet<E>) collection); } else if (collection instanceof Set) { return Collections.unmodifiableSet((Set<E>) collection);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 86K bytes - Click Count (0) -
guava/src/com/google/common/collect/Multimaps.java
Collection<E> collection) { if (collection instanceof NavigableSet) { return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection); } else if (collection instanceof SortedSet) { return Collections.unmodifiableSortedSet((SortedSet<E>) collection); } else if (collection instanceof Set) { return Collections.unmodifiableSet((Set<E>) collection);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 86.3K bytes - Click Count (0) -
src/main/java/org/codelibs/core/convert/BigDecimalConversionUtil.java
return null; } else if (o instanceof BigDecimal) { return (BigDecimal) o; } else if (o instanceof java.util.Date) { if (pattern != null) { return new BigDecimal(new SimpleDateFormat(pattern).format(o)); } return new BigDecimal(Long.toString(((java.util.Date) o).getTime())); } else if (o instanceof String) { final String s = (String) o;Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.8K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java
if (cause instanceof Error) { throw new ExecutionError((Error) cause); } else if (cause instanceof RuntimeException) { throw new UncheckedExecutionException(cause); } else { throw new ExecutionException(cause); } } private static void wrapAndThrowRuntimeExecutionExceptionOrError(Throwable cause) { if (cause instanceof Error) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 9.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
assertTrue(result instanceof RandomAccess); assertListImmutable(result); assertEquals(ImmutableList.<Integer>of(), result); } public void testLeastOfIterator_empty_0() { List<Integer> result = numberOrdering.leastOf(Iterators.<Integer>emptyIterator(), 0); assertTrue(result instanceof RandomAccess); assertListImmutable(result);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 43.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
assertTrue(result instanceof RandomAccess); assertListImmutable(result); assertEquals(ImmutableList.<Integer>of(), result); } public void testLeastOfIterator_empty_0() { List<Integer> result = numberOrdering.leastOf(Iterators.<Integer>emptyIterator(), 0); assertTrue(result instanceof RandomAccess); assertListImmutable(result);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 43.2K bytes - Click Count (0)