From 96cb411e008f04da06db85eabda2a5d4af0f4140 Mon Sep 17 00:00:00 2001
From: agrgr
Date: Thu, 25 Sep 2025 22:15:46 +0200
Subject: [PATCH] add name field to Index object, fix javadoc
---
src/main/java/com/aerospike/dsl/Index.java | 4 ++++
.../com/aerospike/dsl/parts/operand/OperandFactory.java | 8 ++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/aerospike/dsl/Index.java b/src/main/java/com/aerospike/dsl/Index.java
index d296c3a..b408e70 100644
--- a/src/main/java/com/aerospike/dsl/Index.java
+++ b/src/main/java/com/aerospike/dsl/Index.java
@@ -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
*/
diff --git a/src/main/java/com/aerospike/dsl/parts/operand/OperandFactory.java b/src/main/java/com/aerospike/dsl/parts/operand/OperandFactory.java
index ead32af..8440693 100644
--- a/src/main/java/com/aerospike/dsl/parts/operand/OperandFactory.java
+++ b/src/main/java/com/aerospike/dsl/parts/operand/OperandFactory.java
@@ -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.
- *
+ *
* @see StringOperand
* @see BooleanOperand
* @see FloatOperand
@@ -26,10 +26,10 @@ public interface OperandFactory {
* {@link Float} or {@link Double} to {@link FloatOperand}.
* {@link Integer} or {@link Long} to {@link IntOperand}.
*
- *
+ *
* @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) {
@@ -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()));
}
}