public static class

Stats.Statistics

extends Object
java.lang.Object
   ↳ com.google.api.gbase.client.Stats.Statistics

Class Overview

Information about one specific use (impressions, clicks, page views).

Summary

Fields
private Map<String, Integer> countBySource
private int total
Public Constructors
Stats.Statistics()
Public Methods
int getCountBySource(String source)
Get a sub-total for a specific source.
Set<String> getSources()
Gets a set of sources for which a sub-total is available.
int getTotal()
Gets the total for this statistic.
void setCountBySource(String source, int count)
Sets the sub-total for a specific source.
void setTotal(int total)
Sets the total for this statistic.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private Map<String, Integer> countBySource

private int total

Public Constructors

public Stats.Statistics ()

Public Methods

public int getCountBySource (String source)

Get a sub-total for a specific source.

Parameters
source Source name
Returns
  • sub-total or -1 if it is not known

public Set<String> getSources ()

Gets a set of sources for which a sub-total is available.

Returns
  • set of sources

public int getTotal ()

Gets the total for this statistic.

Returns
  • total

public void setCountBySource (String source, int count)

Sets the sub-total for a specific source.

Parameters
source Source name
count Sub-total or -1 if it is not known

public void setTotal (int total)

Sets the total for this statistic.

Parameters
total