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