All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bmv.org.pushca.core.ResourceImpressionCounters Maven / Gradle / Ivy

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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy