Skip to content

Commit

Permalink
Remove generic parameter from Box
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Feb 7, 2018
1 parent 32dd0ef commit 2773f4d
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 63 deletions.
Expand Up @@ -98,7 +98,7 @@ public boolean equals( final Object obj )
if ( !( obj instanceof Box ) )
return false;

final Box< ? > b = ( Box< ? > ) obj;
final Box b = ( Box ) obj;
if ( b.numDimensions() != n || boundaryType() != b.boundaryType() )
return false;

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/net/imglib2/roi/geom/real/Box.java
Expand Up @@ -34,6 +34,7 @@

package net.imglib2.roi.geom.real;

import net.imglib2.RealLocalizable;
import net.imglib2.roi.RealMaskRealInterval;

/**
Expand All @@ -42,11 +43,11 @@
*
* @author Alison Walter
*/
public interface Box< T > extends RealMaskRealInterval
public interface Box extends RealMaskRealInterval
{
/** Returns side length of Box in dimension d. */
double sideLength( int d );

/** Returns the center of the Box. */
T center();
RealLocalizable center();
}
4 changes: 3 additions & 1 deletion src/main/java/net/imglib2/roi/geom/real/WritableBox.java
Expand Up @@ -41,8 +41,10 @@
*
* @author Alison Walter
*/
public interface WritableBox extends Box< RealLocalizableRealPositionable >
public interface WritableBox extends Box
{
@Override
RealLocalizableRealPositionable center();

/** Updates the length of the side in dimension d. */
void setSideLength( int d, double length );
Expand Down

0 comments on commit 2773f4d

Please sign in to comment.