Skip to content

Commit 50adc1f

Browse files
author
nicolaiparlog
committed
The methods 'ObjectPropertyNestingBuilder.nest' and 'ObservableValueNestingBuilder.nest' now both call '....nestProperty'.
1 parent c365589 commit 50adc1f

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

src/org/codefx/libfx/nesting/ObjectPropertyNestingBuilder.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,25 @@ public <N> ObjectPropertyNestingBuilder<N> nestProperty(NestingStep<T, Property<
125125
return new ObjectPropertyNestingBuilder<N>(this, nestingStep);
126126
}
127127

128+
/**
129+
* Usability method which simply calls {@link #nestProperty(NestingStep) nestProperty}.
130+
* <p>
131+
* Returns a builder for nestings whose inner observable is a {@link Property}. The created nestings depend on this
132+
* builder's outer observable and nesting steps and adds the specified step as the next one.
133+
*
134+
* @param <N>
135+
* the type wrapped by the created nesting builder
136+
* @param nestingStep
137+
* the function which performs the nesting step from one observable to the next
138+
* @return an {@link ObservableValueNestingBuilder} which builds a nesting from this builder's settings and the
139+
* specified nesting steps
140+
* @throws NullPointerException
141+
* if the specified function is null
142+
*/
143+
public <N> ObjectPropertyNestingBuilder<N> nest(NestingStep<T, Property<N>> nestingStep) {
144+
return nestProperty(nestingStep);
145+
}
146+
128147
/**
129148
* Returns a builder for nestings whose inner observable is a {@link BooleanProperty}. The created nestings depend
130149
* on this builder's outer observable and nesting steps and adds the specified step as the next one.
@@ -221,25 +240,6 @@ public StringPropertyNestingBuilder nestStringProperty(NestingStep<T, StringProp
221240
return new StringPropertyNestingBuilder(this, nestingStep);
222241
}
223242

224-
/**
225-
* Usability method which simply calls {@link #nestProperty(NestingStep) nestProperty}.
226-
* <p>
227-
* Returns a builder for nestings whose inner observable is a {@link Property}. The created nestings depend on this
228-
* builder's outer observable and nesting steps and adds the specified step as the next one.
229-
*
230-
* @param <N>
231-
* the type wrapped by the created nesting builder
232-
* @param nestingStep
233-
* the function which performs the nesting step from one observable to the next
234-
* @return an {@link ObservableValueNestingBuilder} which builds a nesting from this builder's settings and the
235-
* specified nesting steps
236-
* @throws NullPointerException
237-
* if the specified function is null
238-
*/
239-
public <N> ObjectPropertyNestingBuilder<N> nest(NestingStep<T, Property<N>> nestingStep) {
240-
return nestProperty(nestingStep);
241-
}
242-
243243
//#end NEST
244244

245245
// #region BUILD

src/org/codefx/libfx/nesting/ObservableValueNestingBuilder.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,25 @@ public <N> ObjectPropertyNestingBuilder<N> nestProperty(NestingStep<T, Property<
124124
return new ObjectPropertyNestingBuilder<N>(this, nestingStep);
125125
}
126126

127+
/**
128+
* Usability method which simply calls {@link #nestProperty(NestingStep) nestProperty}.
129+
* <p>
130+
* Returns a builder for nestings whose inner observable is a {@link Property}. The created nestings depend on this
131+
* builder's outer observable and nesting steps and adds the specified step as the next one.
132+
*
133+
* @param <N>
134+
* the type wrapped by the created nesting builder
135+
* @param nestingStep
136+
* the function which performs the nesting step from one observable to the next
137+
* @return an {@link ObservableValueNestingBuilder} which builds a nesting from this builder's settings and the
138+
* specified nesting steps
139+
* @throws NullPointerException
140+
* if the specified function is null
141+
*/
142+
public <N> ObjectPropertyNestingBuilder<N> nest(NestingStep<T, Property<N>> nestingStep) {
143+
return nestProperty(nestingStep);
144+
}
145+
127146
/**
128147
* Returns a builder for nestings whose inner observable is a {@link BooleanProperty}. The created nestings depend
129148
* on this builder's outer observable and nesting steps and adds the specified step as the next one.
@@ -220,25 +239,6 @@ public StringPropertyNestingBuilder nestStringProperty(NestingStep<T, StringProp
220239
return new StringPropertyNestingBuilder(this, nestingStep);
221240
}
222241

223-
/**
224-
* Usability method which simply calls {@link #nestObservableValue(NestingStep) nestObservable}.
225-
* <p>
226-
* Returns a builder for nestings whose inner observable is an {@link ObservableValue}. The created nestings depend
227-
* on this builder's outer observable and nesting steps and adds the specified step as the next one.
228-
*
229-
* @param <N>
230-
* the type wrapped by the created nesting builder
231-
* @param nestingStep
232-
* the function which performs the nesting step from one observable to the next
233-
* @return an {@link ObservableValueNestingBuilder} which builds a nesting from this builder's settings and the
234-
* specified nesting steps
235-
* @throws NullPointerException
236-
* if the specified function is null
237-
*/
238-
public <N> ObservableValueNestingBuilder<N> nest(NestingStep<T, ObservableValue<N>> nestingStep) {
239-
return nestObservableValue(nestingStep);
240-
}
241-
242242
//#end NEST
243243

244244
}

0 commit comments

Comments
 (0)