예제 #1
0
 private boolean matches(final AllocatorDescriptor desc) {
   return desc.getAllocatorMap().size() == allocatorMap.size()
       && desc.getAllocatorClassName().equals(allocatorClassName);
 }
예제 #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();
 }