bmv.org.pushca.core.ResourceImpressionCounters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pushca-client Show documentation
Show all versions of pushca-client Show documentation
Advanced client for Pushca server, without connection pool support
The newest version!
package bmv.org.pushca.core;
import java.util.List;
public class ResourceImpressionCounters {
public String resourceId;
public List counters;
public long getCounter(int code) {
return counters.stream()
.filter(c -> c.code == code)
.map(c -> c.counter)
.findFirst().orElse(0L);
}
}