- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 131 for isinstance (0.2 sec)
-
maven-compat/src/test/java/org/apache/maven/SimpleLookup.java
public SimpleLookup(List<Object> objects) { this.objects = objects; } @Override public <T> T lookup(Class<T> type) { return objects.stream() .filter(type::isInstance) .map(type::cast) .findAny() .orElseThrow(() -> new LookupException("No service of type " + type)); } @Override
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 15:10:38 GMT 2024 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterables.java
* This does perform a little more work than necessary, so another option is to insert an * unchecked cast at some later point: * * <pre> * {@code @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result = * (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());} * </pre>
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 24 19:38:27 GMT 2024 - 42.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
* desiredType}. */ @SuppressWarnings("unchecked") // can cast to <T> because non-Ts are removed @GwtIncompatible // Class.isInstance public static <T> UnmodifiableIterator<T> filter(Iterator<?> unfiltered, Class<T> desiredType) { return (UnmodifiableIterator<T>) filter(unfiltered, instanceOf(desiredType)); } /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 30 18:43:01 GMT 2024 - 51.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractFuture.java
for (java.lang.reflect.Field f : k.getDeclaredFields()) { f.setAccessible(true); Object x = f.get(null); if (k.isInstance(x)) { return k.cast(x); } } throw new NoSuchFieldError("the Unsafe"); } });
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 22 21:17:24 GMT 2024 - 63K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java
.collect(Collectors.joining("\n - ", " - ", ""))); } }; injector.bindInstance(Injector.class, injector); bind(Injector.class).toInstance(injector); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if (classLoader == null) { classLoader = getClass().getClassLoader(); } try {
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu Apr 25 14:13:36 GMT 2024 - 8K bytes - Viewed (0) -
RELEASE.md
* `tf.compat.v1.Session`
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Mon Apr 29 19:17:57 GMT 2024 - 727.7K bytes - Viewed (8) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
Long: `Retrieve information about certificates for the Ztunnel instance.`, Example: ` # Retrieve summary about workload configuration for a randomly chosen ztunnel. istioctl x ztunnel-config certificates # Retrieve full certificate dump of workloads for a given Ztunnel instance. istioctl x ztunnel-config certificates <ztunnel-name[.namespace]> -o json `,
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed May 01 13:11:40 GMT 2024 - 22.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Supplier.java
*/ @GwtCompatible @ElementTypesAreNonnullByDefault public interface Supplier<T extends @Nullable Object> { /** * Retrieves an instance of the appropriate type. The returned object may or may not be a new * instance, depending on the implementation. * * @return an instance of the appropriate type */ @ParametricNullness T get();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 24 01:41:50 GMT 2024 - 2.5K bytes - Viewed (0) -
maven-api-impl/src/test/java/org/apache/maven/internal/impl/standalone/RepositorySystemSupplier.java
/** * A simple memorizing {@link Supplier} of {@link RepositorySystem} instance, that on first call * supplies lazily constructed instance, and on each subsequent call same instance. Hence, this instance should be * thrown away immediately once repository system was created and there is no need for more instances. If new * repository system instance needed, new instance of this class must be created. For proper shut down of returned
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 15:10:38 GMT 2024 - 43.7K bytes - Viewed (0) -
architecture/build-state-model.md
The build tree state is managed by the `BuildTreeState` class. An instance is created at the start of a build execution and discarded at the end of the execution. ### Build state The "build state" holds the state for a build within the build definition for a single build execution, and is contained by the build tree state. The build state is managed by the `BuildState` class.
Plain Text - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Sun May 05 22:45:11 GMT 2024 - 3.4K bytes - Viewed (0)