Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for QueryOp (0.18 sec)

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

            public String toString() {
              return name;
            }
          };
        }
    
        static final QueryOp<Map<Object, Object>> MAP_GET =
            QueryOp.create("Map.get", Map::get, Math::log);
    
        @SuppressWarnings("ReturnValueIgnored")
        static final QueryOp<Set<Object>> SET_CONTAINS =
            QueryOp.create("Set.contains", Set::contains, Math::log);
    
        abstract void apply(T collection, Object query);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

                .collect(ImmutableList.toImmutableList()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create("BiMap.get", BiMap::get, Math::log),
                QueryOp.create("BiMap.inverse.get", (bm, o) -> bm.inverse().get(o), Math::log)));
      }
    
      /** All the ways to create an ImmutableBiMap. */
      enum ConstructionPathway {
        COPY_OF_MAP {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/CompactHashMapFloodingTest.java

      public CompactHashMapFloodingTest() {
        super(
            ImmutableList.of(Construction.mapFromKeys(CompactHashMap::create)),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/CompactLinkedHashSetFloodingTest.java

      public CompactLinkedHashSetFloodingTest() {
        super(
            ImmutableList.of(Construction.setFromElements(CompactLinkedHashSet::create)),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.SET_CONTAINS));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/CompactHashSetFloodingTest.java

      public CompactHashSetFloodingTest() {
        super(
            ImmutableList.of(Construction.setFromElements(CompactHashSet::create)),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.SET_CONTAINS));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/CompactLinkedHashMapFloodingTest.java

      public CompactLinkedHashMapFloodingTest() {
        super(
            ImmutableList.of(Construction.mapFromKeys(CompactLinkedHashMap::create)),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

      public ImmutableMapFloodingTest() {
        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(QueryOp.MAP_GET));
      }
    
      /** All the ways to create an ImmutableMap. */
      enum ConstructionPathway implements Construction<Map<Object, Object>> {
        COPY_OF_MAP {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableMultisetFloodingTest.java

      public ImmutableMultisetFloodingTest() {
        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create(
                    "count",
                    (ms, o) -> {
                      int unused = ms.count(o);
                    },
                    Math::log)));
      }
    
      /** All the ways to create an ImmutableMultiset. */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSetFloodingTest.java

      public ImmutableSetFloodingTest() {
        super(
            Arrays.asList(ConstructionPathway.values()),
            n -> n * Math.log(n),
            ImmutableList.of(
                QueryOp.create(
                    "contains",
                    (s, o) -> {
                      boolean unused = s.contains(o);
                    },
                    Math::log)));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.8K bytes
    - Viewed (0)
Back to top