Skip to content

Commit 56a62b1

Browse files
committed
RRAView: Align convert functions with RAView
1 parent 572955c commit 56a62b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/net/imglib2/view/fluent/RealRandomAccessibleView.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ public interface RealRandomAccessibleView< T, V extends RealRandomAccessibleView
114114
* @return a converted view
115115
*/
116116
default < U > RealRandomAccessibleView< U, ? > convert(
117-
final Converter< ? super T, ? super U > converter,
118-
final Supplier< U > targetSupplier )
117+
final Supplier< U > targetSupplier ,
118+
final Converter< ? super T, ? super U > converter)
119119
{
120120
return wrap( Converters.convert2( delegate(), converter, targetSupplier ) );
121121
}
@@ -140,8 +140,8 @@ public interface RealRandomAccessibleView< T, V extends RealRandomAccessibleView
140140
* @return a converted view
141141
*/
142142
default < U > RealRandomAccessibleView< U, ? > convert(
143-
final Supplier< Converter< ? super T, ? super U > > converterSupplier,
144-
final Supplier< U > targetSupplier )
143+
final Supplier< U > targetSupplier ,
144+
final Supplier< Converter< ? super T, ? super U > > converterSupplier)
145145
{
146146
return wrap( Converters.convert2( delegate(), converterSupplier, targetSupplier ) );
147147
}
@@ -157,9 +157,9 @@ public interface RealRandomAccessibleView< T, V extends RealRandomAccessibleView
157157
*
158158
* @return {@code function.apply(this)}
159159
*/
160-
default < U > U use( Function< ? super RealRandomAccessibleView< T, ? >, U > function )
160+
default < U > U use( Function< ? super V, U > function )
161161
{
162-
return function.apply( this );
162+
return function.apply( (V) this );
163163
}
164164

165165

0 commit comments

Comments
 (0)