Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for forEachEntry (0.15 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultisetForEachEntryTester.java

    import java.lang.reflect.Method;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.List;
    import org.junit.Ignore;
    
    /**
     * Tests for {@code Multiset#forEachEntry}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/xposmap.go

    func (m *xposmap) remove(p src.XPos) {
    	s := m.mapFor(p.FileIndex())
    	if s == nil {
    		return
    	}
    	s.remove(p.Line())
    }
    
    // foreachEntry applies f to each (fileindex, line, value) triple in m.
    func (m *xposmap) foreachEntry(f func(j int32, l uint, v int32)) {
    	for j, mm := range m.maps {
    		s := mm.size()
    		for i := 0; i < s; i++ {
    			l, v := mm.getEntry(i)
    			f(j, l, v)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:48:16 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java

      }
    
      @Override
      Entry<E> getEntry(int index) {
        return Multisets.immutableEntry(elementSet.asList().get(index), getCount(index));
      }
    
      @Override
      public void forEachEntry(ObjIntConsumer<? super E> action) {
        checkNotNull(action);
        for (int i = 0; i < length; i++) {
          action.accept(elementSet.asList().get(i), getCount(i));
        }
      }
    
      @Override
      @CheckForNull
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/EnumMultiset.java

              }
    
              @Override
              public int getCount() {
                return counts[index];
              }
            };
          }
        };
      }
    
      @Override
      public void forEachEntry(ObjIntConsumer<? super E> action) {
        checkNotNull(action);
        for (int i = 0; i < enumConstants.length; i++) {
          if (counts[i] > 0) {
            action.accept(enumConstants[i], counts[i]);
          }
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/deadcode.go

    			w.Pos = w.Pos.WithIsStmt()
    			pendingLines.remove(w.Pos)
    		}
    	}
    
    	// Any boundary that failed to match a live value can move to a block end
    	pendingLines.foreachEntry(func(j int32, l uint, bi int32) {
    		b := f.Blocks[bi]
    		if b.Pos.Line() == l && b.Pos.FileIndex() == j {
    			b.Pos = b.Pos.WithIsStmt()
    		}
    	})
    
    	// Remove dead values from blocks' value list. Return dead
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 00:29:01 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top