summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-09-24 19:35:35 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-09-24 19:35:35 +0200
commit77ab955c266375ec90551857e5fbd8af894f50c6 (patch)
treed4ab582bacd255cf5587a456fbe03f07792d61ba /vespajlib
parent11ab4237312e3f52fac8f5f82553ee2598ac5eed (diff)
Nonfunctional changes only
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/vespa/objects/Identifiable.java2
-rw-r--r--vespajlib/src/main/java/com/yahoo/vespa/objects/Selectable.java11
2 files changed, 7 insertions, 6 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/vespa/objects/Identifiable.java b/vespajlib/src/main/java/com/yahoo/vespa/objects/Identifiable.java
index 3e392448ce2..78fad5f5867 100644
--- a/vespajlib/src/main/java/com/yahoo/vespa/objects/Identifiable.java
+++ b/vespajlib/src/main/java/com/yahoo/vespa/objects/Identifiable.java
@@ -9,7 +9,7 @@ import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
/**
- * This is the base class to do cross-language serialization and deserialization of complete object structures without
+ * The base class to do cross-language serialization and deserialization of complete object structures without
* the need for a separate protocol. Each subclass needs to register itself using the {@link #registerClass(int, Class)}
* method, and override {@link #onGetClassId()} to return the same classId as the one registered. Creating an instance
* of an identifiable object is done through the {@link #create(Deserializer)} or {@link #createFromId(int)} factory
diff --git a/vespajlib/src/main/java/com/yahoo/vespa/objects/Selectable.java b/vespajlib/src/main/java/com/yahoo/vespa/objects/Selectable.java
index f1b7d6dc841..e60bb664d7d 100644
--- a/vespajlib/src/main/java/com/yahoo/vespa/objects/Selectable.java
+++ b/vespajlib/src/main/java/com/yahoo/vespa/objects/Selectable.java
@@ -2,17 +2,17 @@
package com.yahoo.vespa.objects;
/**
- * @author baldersheim
- *
- * This class acts as an interface for traversing a tree, or a graph.
+ * A node in a traversable tree.
* Every non leaf Object implements {@link #selectMembers(ObjectPredicate, ObjectOperation)} implementing
* the actual traversal. You can then implement an {@link ObjectPredicate} to select which nodes you want to look at with
* your {@link ObjectOperation}
+ *
+ * @author baldersheim
*/
public class Selectable {
/**
- * Apply the predicate to this object. If the predicate returns true, pass this object to the operation, otherwise
+ * Applies the predicate to this object. If the predicate returns true, pass this object to the operation, otherwise
* invoke the {@link #selectMembers(ObjectPredicate, ObjectOperation)} method to locate sub-elements that might
* trigger the predicate.
*
@@ -28,7 +28,7 @@ public class Selectable {
}
/**
- * Invoke {@link #select(ObjectPredicate, ObjectOperation)} on any member objects this object wants to expose
+ * Invokes {@link #select(ObjectPredicate, ObjectOperation)} on any member objects this object wants to expose
* through the selection mechanism. Overriding this method is optional, and which objects to expose is determined by
* the application logic of the object itself.
*
@@ -44,4 +44,5 @@ public class Selectable {
selectable.select(predicate, operation);
}
}
+
}