Ejemplo n.º 1
0
 public long maximumWeight() {
   assertThat("Invalid usage of context", isWeighted(), is(not(nullValue())));
   long maximum = weigher.unitsPerEntry() * maximumSize.max();
   return (maximum < 0) ? Long.MAX_VALUE : maximum;
 }
Ejemplo n.º 2
0
 public long maximumSize() {
   assertThat("Invalid usage of context", maximumSize, is(not(nullValue())));
   return maximumSize.max();
 }