Returns the total number of inner landscape points in the criterion bid landscape page. If the
page has a null {@code entries} array, returns {@code 0}.
183244
private int getTotalLandscapePointsInPage(CriterionBidLandscapePage page) {
    if (page.getEntries() == null) {
      return 0;
    }
    int totalLandscapePointsInPage = 0;
    for (CriterionBidLandscape criterionBidLandscape : page.getEntries()) {
      totalLandscapePointsInPage += criterionBidLandscape.getLandscapePoints().length;
    }
    return totalLandscapePointsInPage;
  }
436563
public Map.Entry<K, V> getAnchor() {
        Map.Entry<Integer, Map.Entry<K, V>> anchorEntry = anchorList.get(page);
        return anchorEntry == null ? null : anchorEntry.getValue();
    }
425787
protected int numFreeEntries() {
        int res = 0;
        for (int i = 0; i < entries.length; i++) {
            Entry entry = entries[i];
            if (entry.isEmpty()) {
                res++;
            }
        }

        assert (NUMBER_ENTRIES == entries.length);
        return res;
    }
1101609
public int getFaceNumIndices(int face) {
        if (null == m_faceOffsets) {
            if (face >= m_numFaces || face < 0) {
                throw new IndexOutOfBoundsException("Index: " + face + 
                        ", Size: " + m_numFaces);
            }
            return 3;
        }
        else {
            /* 
             * no need to perform bound checks here as the array access will
             * throw IndexOutOfBoundsExceptions if the index is invalid
             */
            
            if (face == m_numFaces - 1) {
                return m_faces.capacity() / 4 - m_faceOffsets.getInt(face * 4);
            }
            
            return m_faceOffsets.getInt((face + 1) * 4) - 
                    m_faceOffsets.getInt(face * 4);
        }
    }
1334888
public int totalCountOfValues() {
        int count = 0;

        for (V v : valueMap.values()) {
            count += v.size();
        }

        return count;
    }
151189
@XmlElement(name = "totalPages", required = true)
    @JsonProperty(value = "totalPages", required = true)
    @ApiModelProperty(value = "The total size of available pages.", position = 3, required = true, readOnly = true)
    @Override
    public int getTotalPages() {
        if (getTotalSize() <= 0L) {
            return 1;
        }
        return (int) Math.ceil((double) getTotalSize() / (double) getPageRequest().getPageSize());
    }
747855
public final int getTotalPages() {
    if (getTotalItems() < getPageSize()) {
      return 1;
    } else {
      final int remainder = getTotalItems() % getPageSize();
      final int quotient = getTotalItems() / getPageSize();
      return (0 == remainder) ? quotient : (quotient + 1);
    }
  }
118538
public int countMapTasks() {
    int mapCount = 0;
    for (Iterator<TaskStatus> it = taskReports.iterator(); it.hasNext();) {
      TaskStatus ts = (TaskStatus) it.next();
      if (ts.getIsMap() && isTaskRunning(ts)) {
        mapCount++;
      }
    }
    return mapCount;
  }
719898
public com.google.api.ads.adwords.axis.v201809.cm.BidLandscapeLandscapePoint[] getLandscapePoints() {
        return landscapePoints;
    }
384238
private int getTotalLandscapePointsInPage(AdGroupBidLandscapePage page) {
    if (page.getEntries() == null) {
      return 0;
    }
    int totalLandscapePointsInPage = 0;
    for (AdGroupBidLandscape adGroupBidLandscape : page.getEntries()) {
      totalLandscapePointsInPage += adGroupBidLandscape.getLandscapePoints().length;
    }
    return totalLandscapePointsInPage;
  }
521008
@Override
	public int size() {
		int count = 0;
		for (Map<N, Map<K, S>> namespaceMap : state) {
			if (null != namespaceMap) {
				for (Map<K, S> keyMap : namespaceMap.values()) {
					if (null != keyMap) {
						count += keyMap.size();
					}
				}
			}
		}
		return count;
	}
463455
int getNextSentencePosition(int numberOfParagraph, int startOfSentencePosition) {
    for (CacheEntry anEntry : entries) {
      if (anEntry.numberOfParagraph == numberOfParagraph && anEntry.startOfSentencePosition == startOfSentencePosition) {
        return anEntry.nextSentencePosition;
      }
    }
    return -1;
  }
280316
public long calcEntryCount() {
    long _count = 0;
    for (Entry e : entries) {
      while (e != null) {
        _count++;
        e = e.another;
      }
    }
    return _count;
  }
362646
public int getNumberOfInputExecutionVertices() {

		int retVal = 0;

		final Iterator<ExecutionGroupVertex> it = this.stageMembers.iterator();
		while (it.hasNext()) {

			final ExecutionGroupVertex groupVertex = it.next();
			if (groupVertex.isInputVertex()) {
				retVal += groupVertex.getCurrentNumberOfGroupMembers();
			}
		}

		return retVal;
	}
564330
public final int getNumberOfPossibleAssignments() {
    int[] sizes = getVariableSizes();
    int numAssignments = 1;
    for (int i = 0; i < sizes.length; i++) {
      numAssignments *= sizes[i];
    }
    return numAssignments;
  }
138984
public static final Point2DArray getCardinals(final BoundingBox box, final Direction[] requestedCardinals)
    {
        final Set<Direction> set = new HashSet<>(Arrays.asList(requestedCardinals));

        final Point2DArray points = new Point2DArray();

        final Point2D c = findCenter(box);
        final Point2D n = new Point2D(c.getX(), box.getY());
        final Point2D e = new Point2D(box.getX() + box.getWidth(), c.getY());
        final Point2D s = new Point2D(c.getX(), box.getY() + box.getHeight());
        final Point2D w = new Point2D(box.getX(), c.getY());
        final Point2D sw = new Point2D(w.getX(), s.getY());
        final Point2D se = new Point2D(e.getX(), s.getY());
        final Point2D ne = new Point2D(e.getX(), n.getY());
        final Point2D nw = new Point2D(w.getX(), n.getY());

        points.push(c);

        if (set.contains(Direction.NORTH))
        {
            points.push(n);
        }
        if (set.contains(Direction.NORTH_EAST))
        {
            points.push(ne);
        }
        if (set.contains(Direction.EAST))
        {
            points.push(e);
        }
        if (set.contains(Direction.SOUTH_EAST))
        {
            points.push(se);
        }
        if (set.contains(Direction.SOUTH))
        {
            points.push(s);
        }
        if (set.contains(Direction.SOUTH_WEST))
        {
            points.push(sw);
        }
        if (set.contains(Direction.WEST))
        {
            points.push(w);
        }
        if (set.contains(Direction.NORTH_WEST))
        {
            points.push(nw);
        }
        return points;
    }
1164926
public final int pageX() {
    if (getTouches() != null && getTouches().length() > 0) {
      return getTouches().get(0).getPageX();
    } else {
      return getClientX() + GQuery.document.getScrollLeft();
    }
  }