Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/com/aerospike/dsl/Index.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public class Index {
* Name of the indexed bin
*/
private final String bin;
/**
* Name of the index
*/
private final String name;
/**
* {@link IndexType} of the index
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* This factory provides a static method to dynamically create concrete operand implementations
* such as {@link StringOperand}, {@link BooleanOperand}, {@link FloatOperand}, and {@link IntOperand}
* from various Java primitive and wrapper types. It centralizes the logic for type-specific object creation.
* </p>
*
* @see StringOperand
* @see BooleanOperand
* @see FloatOperand
Expand All @@ -26,10 +26,10 @@ public interface OperandFactory {
* <li>{@link Float} or {@link Double} to {@link FloatOperand}.</li>
* <li>{@link Integer} or {@link Long} to {@link IntOperand}.</li>
* </ul>
* </p>
*
* @param value The object to be converted into an operand. This cannot be {@code null}.
* @return A new instance of an operand that extends {@link AbstractPart}.
* @throws IllegalArgumentException If the value provided is {@code null}.
* @throws IllegalArgumentException If the value provided is {@code null}.
* @throws UnsupportedOperationException If the type of the value is not supported by the factory.
*/
static AbstractPart createOperand(Object value) {
Expand All @@ -47,7 +47,7 @@ static AbstractPart createOperand(Object value) {
return new IntOperand(((Number) value).longValue());
} else {
throw new UnsupportedOperationException(String.format("Cannot create operand from value of type %s, " +
"only String, boolean, float, double, long and integer values are currently supported",
"only String, boolean, float, double, long and integer values are currently supported",
value.getClass().getSimpleName()));
}
}
Expand Down
Loading