private Resource(final Resource parent, final Data data) { this.parent = parent; this.data = data; this.name = Values.lazy(new Value<String>() { @Override public String get() { if (data.names.size() == 1) { return data.names.get(0); } else { // return merged name return "Merge of " + data.names.toString(); } } }); this.resourceMethods = immutableCopy(ResourceMethod.transform(Resource.this, data.resourceMethods)); this.locator = data.subResourceLocator == null ? null : new ResourceMethod(Resource.this, data.subResourceLocator); this.childResources = immutableCopy(Resource.transform(Resource.this, data.childResources)); }
private Resource(final Resource parent, final Data data) { this.parent = parent; this.data = data; this.name = Values.lazy(new Value<String>() { @Override public String get() { if (data.names.size() == 1) { return data.names.get(0); } else { // return merged name return "Merge of " + data.names.toString(); } } }); this.resourceMethods = immutableCopy(ResourceMethod.transform(Resource.this, data.resourceMethods)); this.locator = data.subResourceLocator == null ? null : new ResourceMethod(Resource.this, data.subResourceLocator); this.childResources = immutableCopy(Resource.transform(Resource.this, data.childResources)); }
private Resource(final Resource parent, final Data data) { this.parent = parent; this.data = data; this.name = Values.lazy(new Value<String>() { @Override public String get() { if (data.names.size() == 1) { return data.names.get(0); } else { // return merged name return "Merge of " + data.names.toString(); } } }); this.resourceMethods = immutableCopy(ResourceMethod.transform(Resource.this, data.resourceMethods)); this.locator = data.subResourceLocator == null ? null : new ResourceMethod(Resource.this, data.subResourceLocator); this.childResources = immutableCopy(Resource.transform(Resource.this, data.childResources)); }
private Resource(final Resource parent, final Data data) { this.parent = parent; this.data = data; this.name = Values.lazy(new Value<String>() { @Override public String get() { if (data.names.size() == 1) { return data.names.get(0); } else { // return merged name return "Merge of " + data.names.toString(); } } }); this.resourceMethods = immutableCopy(ResourceMethod.transform(Resource.this, data.resourceMethods)); this.locator = data.subResourceLocator == null ? null : new ResourceMethod(Resource.this, data.subResourceLocator); this.childResources = immutableCopy(Resource.transform(Resource.this, data.childResources)); }
private Resource(final Resource parent, final Data data) { this.parent = parent; this.data = data; this.name = Values.lazy(new Value<String>() { @Override public String get() { if (data.names.size() == 1) { return data.names.get(0); } else { // return merged name return "Merge of " + data.names.toString(); } } }); this.resourceMethods = immutableCopy(ResourceMethod.transform(Resource.this, data.resourceMethods)); this.locator = data.subResourceLocator == null ? null : new ResourceMethod(Resource.this, data.subResourceLocator); this.childResources = immutableCopy(Resource.transform(Resource.this, data.childResources)); }
private Resource(final Resource parent, final Data data) { this.parent = parent; this.data = data; this.name = Values.lazy(new Value<String>() { @Override public String get() { if (data.names.size() == 1) { return data.names.get(0); } else { // return merged name return "Merge of " + data.names.toString(); } } }); this.resourceMethods = immutableCopy(ResourceMethod.transform(Resource.this, data.resourceMethods)); this.locator = data.subResourceLocator == null ? null : new ResourceMethod(Resource.this, data.subResourceLocator); this.childResources = immutableCopy(Resource.transform(Resource.this, data.childResources)); }
private Resource(final Resource parent, final Data data) { this.parent = parent; this.data = data; this.name = Values.lazy(new Value<String>() { @Override public String get() { if (data.names.size() == 1) { return data.names.get(0); } else { // return merged name return "Merge of " + data.names.toString(); } } }); this.resourceMethods = immutableCopy(ResourceMethod.transform(Resource.this, data.resourceMethods)); this.locator = data.subResourceLocator == null ? null : new ResourceMethod(Resource.this, data.subResourceLocator); this.childResources = immutableCopy(Resource.transform(Resource.this, data.childResources)); }