Example #1
0
 private boolean matches(final AllocatorDescriptor desc) {
   return desc.getAllocatorMap().size() == allocatorMap.size()
       && desc.getAllocatorClassName().equals(allocatorClassName);
 }
Example #2
0
 private AllocationStrategy(final AllocatorDescriptor desc) {
   this.allocatorMap = desc.getAllocatorMap();
   // These classes get loaded, so an interned variant of their name is most likely around anyway.
   this.allocatorClassName = desc.getAllocatorClassName().intern();
 }