public Object[] values() { synchronized( mutex ) { return m.values(); } } public V[] values( V[] array ) {
public V[] values( V[] array ) { synchronized( mutex ) { return m.values( array ); } }
public Object[] values() { return m.values(); } public V[] values( V[] array ) { return m.values( array ); }
public V[] values( V[] array ) { return m.values( array ); }
private static Map<MethodLocation, List<ExecutionNode>> buildLocationToNodePile(VirtualMachine vm, TIntObjectMap<MethodLocation> addressToLocation) { OpCreator opCreator = getOpCreator(vm, addressToLocation); Map<MethodLocation, List<ExecutionNode>> locationToNodePile = new HashMap<>(); for (MethodLocation location : addressToLocation.values(new MethodLocation[addressToLocation.size()])) { Op op = opCreator.create(location); ExecutionNode node = new ExecutionNode(op); // Most node piles will be a template node and 1+ ExecutionNodes. List<ExecutionNode> pile = new ArrayList<>(2); pile.add(node); locationToNodePile.put(location, pile); } return locationToNodePile; }
@Nonnull @Override public Iterator<JDA> iterator() { JDA[] arr = elements.values(EMPTY_ARRAY); return new ObjectArrayIterator<>(arr); }
@Override public Object[] values() { synchronized( mutex ) { return m.values(); } } @Override
public Object[] values() { synchronized( mutex ) { return m.values(); } } public V[] values( V[] array ) {
@Override public V[] values( V[] array ) { synchronized( mutex ) { return m.values( array ); } }
public Object[] values() { synchronized( mutex ) { return m.values(); } } public V[] values( V[] array ) {
public V[] values() { synchronized( mutex ) { return m.values(); } } public <T> T[] values( T[] array ) {
public V[] values( V[] array ) { synchronized( mutex ) { return m.values( array ); } }
public Object[] values() { return m.values(); } public V[] values( V[] array ) { return m.values( array ); }
public V[] values( V[] array ) { synchronized( mutex ) { return m.values( array ); } }
public <T> T[] values( T[] array ) { synchronized( mutex ) { return m.values( array ); } }
/** * Returns the set of types contained within this set */ public Set<T> types() { // NOTE: purely unoptimized! Set<T> types = new HashSet<T>(); for (Object o : edges.values()) { Set<T> s = (Set<T>)o; types.addAll(s); } return types; }
/** * Gets the children categories of this category as an array. * * @return the array of this category's child categories. */ public Category[] getChildrenCategories() { return childrenCategories.values(new Category[childrenCategories.size()]); }
public static void printGraph(SimpleGraph gr) { System.out.println("Printing graph"); for (Object o : gr.vertices.values()) { Vertex v = (Vertex) o; System.out.print(v.lbl + ":"); for (Edge edge : v.edges) { System.out.print(" " + edge.getOppositeVertex(v).lbl); } System.out.println(); } }
/** * Gets the children categories of this category as an array. * * @return the array of this category's child topics. */ public Topic<?>[] getChildrenTopics() { return childrenTopics.values(new Topic[childrenTopics.size()]); }
/** * Getter for property 'conditionalCoverage'. * * @return Value for property 'conditionalCoverage'. */ public Ratio getConditionalCoverage() { long maxTotal = 0; long total = 0; for (CoveragePaintDetails d : lines.values(EMPTY)) { maxTotal += d.branchCount(); total += d.branchCoverage(); } return Ratio.create(total, maxTotal); }