Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Kissling (0.56 sec)

  1. guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertEquals(multimap.hashCode(), unmodifiable.hashCode());
        assertEquals(multimap, unmodifiable);
    
        assertThat(unmodifiable.asMap().get("bar")).containsExactly(5, -1);
        assertNull(unmodifiable.asMap().get("missing"));
    
        assertFalse(unmodifiable.entries() instanceof Serializable);
      }
    
      /** Prepares the multimap for unmodifiable tests, returning an unmodifiable view of the map. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

      public void testGoodClass() {
        shouldPass(new PassObject());
      }
    
      private static class FailOneArgDoesntThrowNPE extends PassObject {
        @Override
        public void oneArg(String s) {
          // Fail:  missing NPE for s
        }
      }
    
      public void testFailOneArgDoesntThrowNpe() {
        shouldFail(new FailOneArgDoesntThrowNPE());
      }
    
      private static class FailOneArgThrowsWrongType extends PassObject {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        TreeMultimap<@Nullable String, @Nullable Integer> multimap = createPopulate();
        assertEquals(DECREASING_INT_COMPARATOR, multimap.get("foo").comparator());
        assertEquals(DECREASING_INT_COMPARATOR, multimap.get("missing").comparator());
      }
    
      public void testMultimapComparators() {
        Multimap<String, Integer> multimap = create();
        multimap.put("foo", 3);
        multimap.put("bar", 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Cut.java

            return compareResult == 0;
          } catch (ClassCastException wastNotComparableToOurType) {
            return false;
          }
        }
        return false;
      }
    
      // Prevent "missing hashCode" warning by explicitly forcing subclasses implement it
      @Override
      public abstract int hashCode();
    
      /*
       * The implementation neither produces nor consumes any non-null instance of type C, so
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

            //
            // Note that there is a race condition here which can result in missing
            // a cyclic edge: it's possible for two threads to simultaneous find
            // "safe" edges which together form a cycle. Preventing this race
            // condition efficiently without _introducing_ deadlock is probably
            // tricky. For now, just accept the race condition---missing a warning
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/ValueGraphTest.java

                IllegalArgumentException.class, () -> graph.removeEdge(EndpointPair.ordered(2, 1)));
        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
      }
    
      @Test
      public void edgeValue_missing() {
        graph = ValueGraphBuilder.directed().build();
    
        assertThat(graph.edgeValueOrDefault(1, 2, DEFAULT)).isEqualTo(DEFAULT);
        assertThat(graph.edgeValueOrDefault(2, 1, DEFAULT)).isEqualTo(DEFAULT);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

       * TypeResolver#resolveType} will not be able to call {@code getAnnotatedBounds()} on it, but that
       * should hopefully be rare.
       *
       * <p>TODO(b/147144588): We are currently also missing the methods inherited from {@link
       * AnnotatedElement}, which {@code TypeVariable} began to extend only in Java 8. Those methods
       * refer only to types present in Java 7, so we could implement them in {@code TypeVariableImpl}
    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)
  8. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

            builder.put(key, set);
            size += set.size();
          }
        }
    
        return new ImmutableSetMultimap<>(builder.buildOrThrow(), size, valueComparator);
      }
    
      /**
       * Returned by get() when a missing key is provided. Also holds the comparator, if any, used for
       * values.
       */
      private final transient ImmutableSet<V> emptySet;
    
      ImmutableSetMultimap(
          ImmutableMap<K, ImmutableSet<V>> map,
    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)
  9. android/guava/src/com/google/common/collect/Multisets.java

       * for (E e : occurrencesToRemove) {
       *   multisetToModify.remove(e);
       * }
       * }</pre>
       *
       * @return {@code true} if {@code multisetToModify} was changed as a result of this operation
       * @since 10.0 (missing in 18.0 when only the overload taking an {@code Iterable} was present)
       */
      @CanIgnoreReturnValue
      public static boolean removeOccurrences(
          Multiset<?> multisetToModify, Multiset<?> occurrencesToRemove) {
    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)
  10. android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java

                    String.format(Locale.ROOT, "Caught an exception in %s.  Shutting down.", t),
                    e);
          } catch (Throwable errorInLogging) { // sneaky checked exception
            // If logging fails, e.g. due to missing memory, at least try to log the
            // message and the cause for the failed logging.
            System.err.println(e.getMessage());
            System.err.println(errorInLogging.getMessage());
          } finally {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 2.8K bytes
    - Viewed (0)
Back to top