Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Watch (0.14 sec)

  1. android/guava/src/com/google/common/reflect/Types.java

            try {
              Method getTypeName = Type.class.getMethod("getTypeName");
              return (String) getTypeName.invoke(type);
            } catch (NoSuchMethodException e) {
              throw new AssertionError("Type.getTypeName should be available in Java 8");
            } catch (InvocationTargetException | IllegalAccessException e) {
              throw new RuntimeException(e);
            }
          }
        },
        JAVA9 {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

          if (!predicate.apply(element)) {
            if (from > to) {
              try {
                list.set(to, element);
              } catch (UnsupportedOperationException e) {
                slowRemoveIfForRemainingElements(list, predicate, to, from);
                return true;
              } catch (IllegalArgumentException e) {
                slowRemoveIfForRemainingElements(list, predicate, to, from);
                return true;
              }
    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)
  3. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      private Object invokeGeneratorMethod(Method generator, Object... args) {
        try {
          return generator.invoke(this, args);
        } catch (InvocationTargetException e) {
          throwIfUnchecked(e.getCause());
          throw new RuntimeException(e.getCause());
        } catch (Exception e) {
          throwIfUnchecked(e);
          throw new RuntimeException(e);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

          }
          builder.put(key, valueSet);
          tmpSize += valueCount;
        }
    
        ImmutableMap<Object, ImmutableSet<Object>> tmpMap;
        try {
          tmpMap = builder.buildOrThrow();
        } catch (IllegalArgumentException e) {
          throw (InvalidObjectException) new InvalidObjectException(e.getMessage()).initCause(e);
        }
    
        FieldSettersHolder.MAP_FIELD_SETTER.set(this, tmpMap);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multisets.java

          }
          return 0;
        }
    
        @Override
        public int add(@ParametricNullness E element, int occurrences) {
          checkArgument(
              predicate.apply(element), "Element %s does not match predicate %s", element, predicate);
          return unfiltered.add(element, occurrences);
        }
    
        @Override
        public int remove(@CheckForNull Object element, int occurrences) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          appendResultObject(builder, value);
          builder.append("]");
        } catch (ExecutionException e) {
          builder.append("FAILURE, cause=[").append(e.getCause()).append("]");
        } catch (CancellationException e) {
          builder.append("CANCELLED"); // shouldn't be reachable
        } catch (Exception e) { // sneaky checked exception
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ListsTest.java

        // But it can't grow
        try {
          otherWay.add("nope");
          fail("no exception thrown");
        } catch (UnsupportedOperationException expected) {
        }
    
        // And it can't shrink
        try {
          otherWay.remove(2);
          fail("no exception thrown");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

      private static void executeListener(Runnable runnable, Executor executor) {
        try {
          executor.execute(runnable);
        } catch (Exception e) { // sneaky checked exception
          // Log it and keep going -- bad runnable and/or executor. Don't punish the other runnables if
          // we're given a bad one. We only catch Exception because we want Errors to propagate up.
          log.get()
              .log(
                  Level.SEVERE,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        public boolean contains(@CheckForNull Object o) {
          if (o == null) {
            return false;
          }
          try {
            @SuppressWarnings("unchecked") // we catch CCE's
            C c = (C) o;
            return ImmutableRangeSet.this.contains(c);
          } catch (ClassCastException e) {
            return false;
          }
        }
    
        @Override
        int indexOf(@CheckForNull Object target) {
          if (contains(target)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

              }
            }
            if (f != null) {
              --active;
              try {
                return f.get();
              } catch (ExecutionException eex) {
                ee = eex;
              } catch (InterruptedException iex) {
                throw iex;
              } catch (Exception rex) { // sneaky checked exception
                ee = new ExecutionException(rex);
              }
            }
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
Back to top