@Override public String toString() { return ToString.toString(this); } }
/** * Sets the main value for the constructed statement. * * @param value * the main value of the statement * @return builder object to continue construction */ public StatementBuilder withValue(Value value) { this.mainValue = value; return getThis(); }
@Override public int hashCode() { return Hash.hashCode(this); } }
/** * Starts the construction of an {@link ItemDocument} with the given id. * * @param itemIdValue * id of the newly constructed item document * @return builder object to continue construction */ public static ItemDocumentBuilder forItemId(ItemIdValue itemIdValue) { return new ItemDocumentBuilder(itemIdValue); }
/** * Sets the revision id for the constructed document. See * {@link EntityDocument#getRevisionId()}. * * @param revisionId * the revision id * @return builder object to continue construction */ public T withRevisionId(long revisionId) { this.revisionId = revisionId; return getThis(); }
/** * Starts the construction of a {@link Reference}. * * @return builder object to continue construction */ public static ReferenceBuilder newInstance() { return new ReferenceBuilder(); }
/** * Serializes the given object in JSON and returns the resulting string. In * case of errors, null is returned. * * @param statement * object to serialize * @return JSON serialization or null */ public static String getJsonString(Statement statement) { return jacksonObjectToString(statement); }
/** * Starts the construction of an {@link PropertyDocument} from the existing * document. * * @param initialDocument * the existing document to start the build from * @return builder object to continue construction */ public static PropertyDocumentBuilder fromPropertyDocument( PropertyDocument initialDocument) { return new PropertyDocumentBuilder(initialDocument); }
@Override public String toString() { return ToString.toString(this); } }
/** * Sets the main snak of the statement to be a {{@link SomeValueSnak}. * * @return builder object to continue construction */ public StatementBuilder withSomeValue() { this.mainValue = null; this.noMainValue = false; return getThis(); }
/** * Starts the construction of an {@link ItemDocument} from an existing value. * * @param initialDocument * the item to start the construction from * @return builder object to continue construction */ public static ItemDocumentBuilder fromItemDocument(ItemDocument initialDocument) { return new ItemDocumentBuilder(initialDocument); }
@Override public String toString() { return ToString.toString(this); } /*
/** * Sets the main snak of the statement to be a {{@link NoValueSnak}. * * @return builder object to continue construction */ public StatementBuilder withNoValue() { this.mainValue = null; this.noMainValue = true; return getThis(); }
/** * Starts the construction of an {@link ItemDocument} from an existing value. * * @param initialDocument * the item to start the construction from * @return builder object to continue construction */ public static ItemDocumentBuilder fromItemDocument(ItemDocument initialDocument) { return new ItemDocumentBuilder(initialDocument); }
@Override public String toString() { return ToString.toString(this); } }
/** * Sets the rank for the constructed statement. * * @param rank * the rank of the statement * @return builder object to continue construction */ public StatementBuilder withRank(StatementRank rank) { this.rank = rank; return getThis(); }
@Override public String toString() { return ToString.toString(this); } }
@Override public String toString() { return ToString.toString(this); } }
@Override public String toString() { return ToString.toString(this); } }
@Override public String toString() { return ToString.toString(this); } }