Skip to content

Commit 04157d2

Browse files
committed
OpInfo: make javadoc blurbs more consistent
1 parent 54e26c1 commit 04157d2

File tree

1 file changed

+13
-18
lines changed
  • scijava-ops-api/src/main/java/org/scijava/ops/api

1 file changed

+13
-18
lines changed

scijava-ops-api/src/main/java/org/scijava/ops/api/OpInfo.java

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public interface OpInfo extends Comparable<OpInfo> {
5050
/** Identifier for an unaltered OpInfo in an Op signature **/
5151
String IMPL_DECLARATION = "|Info:";
5252

53-
/** name(s) of the op. */
53+
/** Name(s) of the op. */
5454
List<String> names();
5555

5656
/**
@@ -59,34 +59,34 @@ public interface OpInfo extends Comparable<OpInfo> {
5959
*/
6060
Type opType();
6161

62-
/** Gets the associated {@link Struct} metadata. */
62+
/** The associated {@link Struct} metadata. */
6363
Struct struct();
6464

65-
/** Gets the hints declared by the Op */
65+
/** The hints declared by the Op */
6666
Hints declaredHints();
6767

68-
/** Gets the op's input parameters. */
68+
/** The op's input parameters. */
6969
default List<Member<?>> inputs() {
7070
return struct().members().stream() //
7171
.filter(Member::isInput) //
7272
.collect(Collectors.toList());
7373
}
7474

75-
/** Gets the types of the op's input parameters. */
75+
/** The types of the op's input parameters. */
7676
default List<Type> inputTypes() {
7777
return inputs().stream() //
7878
.map(Member::type) //
7979
.collect(Collectors.toList());
8080
}
8181

82-
/** Gets the op's output parameters. */
82+
/** The op's output parameters. */
8383
default List<Member<?>> outputs() {
8484
return struct().members().stream() //
8585
.filter(Member::isOutput) //
8686
.collect(Collectors.toList());
8787
}
8888

89-
/** Gets the op's output parameter, if there is <b>exactly</b> one. */
89+
/** The op's output parameter, if there is <b>exactly</b> one. */
9090
default Member<?> output() {
9191
List<Member<?>> outputs = outputs();
9292

@@ -96,23 +96,18 @@ default Member<?> output() {
9696
throw new IllegalStateException("Multiple outputs in Struct " + struct());
9797
}
9898

99-
/** Gets the op's output parameter, if there is <b>exactly</b> one. */
99+
/** The type of the op's output parameter, if there is <b>exactly</b> one. */
100100
default Type outputType() {
101101
return output().type();
102102
}
103103

104104
/** The op's priority. */
105105
double priority();
106106

107-
/**
108-
* A fully qualified, unambiguous name for this specific op implementation.
109-
*/
107+
/** A fully qualified, unambiguous name for this specific op implementation. */
110108
String implementationName();
111109

112-
/**
113-
* Create a StructInstance using the Struct metadata backed by an object of
114-
* the op itself.
115-
*/
110+
/** Creates an instance of the op's associated {@link Struct} metadata. */
116111
StructInstance<?> createOpInstance(List<?> dependencies);
117112

118113
AnnotatedElement getAnnotationBearer();
@@ -125,13 +120,13 @@ default int compareTo(final OpInfo that) {
125120
return this.implementationName().compareTo(that.implementationName());
126121
}
127122

128-
/** The version of the Op */
123+
/** The version of the Op. */
129124
String version();
130125

131-
/** A unique identifier for an Op */
126+
/** A unique identifier for an Op. */
132127
String id();
133128

134-
/** A description of the Op's behavior */
129+
/** A description of the Op's behavior. */
135130
default String description() {
136131
return "";
137132
}

0 commit comments

Comments
 (0)