public <E extends AbstractElement<B, U>, B extends Blueprint, U extends AbstractElement.Update> ElementTypes<E, B, U> byElement(Class<E> elementType) { for(SegmentType st : SegmentType.values()) { ElementTypes ret = elementTypes.get(st); if (ret.getElementType().equals(elementType)) { return ret; } } throw new IllegalArgumentException("Unknown element type: " + elementType); }
public <E extends AbstractElement, B extends Blueprint> ElementTypes<E, B> byElement(Class<E> elementType) { for(SegmentType st : SegmentType.values()) { ElementTypes ret = elementTypes.get(st); if (ret.getElementType().equals(elementType)) { return ret; } } throw new IllegalArgumentException("Unknown element type: " + elementType); } }
public <U extends AbstractElement.Update> ElementTypes<?, ?, U> byUpdate(Class<U> updateType) { for(SegmentType st : SegmentType.values()) { ElementTypes ret = elementTypes.get(st); if (ret.getUpdateType().equals(updateType)) { return ret; } } throw new IllegalArgumentException("Unknown update type: " + updateType); }
public <E extends AbstractElement<B, U>, B extends Blueprint, U extends AbstractElement.Update> ElementTypes<E, B, U> bySingle(Class<? extends ResolvableToSingle<E, U>> singleAccessorType) { for(SegmentType st : SegmentType.values()) { ElementTypes ret = elementTypes.get(st); if (ret.getSingleAccessorType().equals(singleAccessorType)) { return ret; } } throw new IllegalArgumentException("Unknown single accessor type: " + singleAccessorType); }
public <B extends Blueprint> ElementTypes<? extends AbstractElement, B> byBlueprint(Class<B> blueprintType) { for(SegmentType st : SegmentType.values()) { ElementTypes ret = elementTypes.get(st); if (ret.getBlueprintType().equals(blueprintType)) { return ret; } } throw new IllegalArgumentException("Unknown blueprint type: " + blueprintType); }
public <B extends Blueprint> ElementTypes<? extends AbstractElement<B, ?>, B, ?> byBlueprint(Class<B> blueprintType) { for(SegmentType st : SegmentType.values()) { ElementTypes ret = elementTypes.get(st); if (ret.getBlueprintType().equals(blueprintType)) { return ret; } } throw new IllegalArgumentException("Unknown blueprint type: " + blueprintType); }
public <E extends AbstractElement<B, U>, B extends Blueprint, U extends AbstractElement.Update> ElementTypes<E, B, U> byMultiple(Class<? extends ResolvableToMany<E>> multipleAccessorType) { for(SegmentType st : SegmentType.values()) { ElementTypes ret = elementTypes.get(st); if (ret.getMultipleAccessorType().equals(multipleAccessorType)) { return ret; } } throw new IllegalArgumentException("Unknown multiple accessor type: " + multipleAccessorType); } }
public Builder withAllTypes() { return withTypes(SegmentType.values()); }
if (syncRequest.getConfiguration().getSyncedTypes().size() == SegmentType.values().length) {