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