Skip to content

Commit

Permalink
Make inner classes private for better encapsulation
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Apr 5, 2024
1 parent 9d3f3d7 commit ec2d46d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/imglib2/roi/boundary/Boundary.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public RandomAccess< BoolType > randomAccess( final Interval interval )
return randomAccess();
}

final class BoundaryIterable extends AbstractWrappedInterval< Interval > implements IterableInterval< Void >
private final class BoundaryIterable extends AbstractWrappedInterval< Interval > implements IterableInterval< Void >
{
BoundaryIterable()
{
Expand Down Expand Up @@ -179,7 +179,7 @@ public Void firstElement()
}
}

final class BoundaryCursor extends Point implements Cursor< Void >
private final class BoundaryCursor extends Point implements Cursor< Void >
{
private int i;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/imglib2/roi/labeling/LabelRegion.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public PositionableIterableInterval< Void > inside()
return inside;
}

class LabelRegionIterable extends AbstractWrappedPositionableLocalizable< LabelRegion > implements PositionableIterableInterval< Void >
private final class LabelRegionIterable extends AbstractWrappedPositionableLocalizable< LabelRegion< T > > implements PositionableIterableInterval< Void >
{
LabelRegionIterable()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public IterableInterval< Void > inside()
return inside;
}

class InsideIterable extends AbstractWrappedInterval< Interval > implements IterableInterval< Void >
private final class InsideIterable extends AbstractWrappedInterval< Interval > implements IterableInterval< Void >
{
InsideIterable()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public IterableInterval< Void > inside()
return inside;
}

class InsideIterable extends AbstractWrappedInterval< Interval > implements IterableInterval< Void >
private final class InsideIterable extends AbstractWrappedInterval< Interval > implements IterableInterval< Void >
{
InsideIterable()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public RandomAccess< T > randomAccess( final Interval interval )
return new RA( source.randomAccess( Intervals.translate( interval, currentOffset ) ), currentOffset );
}

class RA extends OffsetPositionableLocalizable< RandomAccess< T > > implements RandomAccess< T >
private final class RA extends OffsetPositionableLocalizable< RandomAccess< T > > implements RandomAccess< T >
{
public RA( final RandomAccess< T > source, final long[] offset )
{
Expand Down Expand Up @@ -116,7 +116,7 @@ public PositionableIterableInterval< Void > inside()
return inside;
}

class InsideIterable extends AbstractWrappedPositionableLocalizable< PositionableWrappedIterableRegion< T > > implements PositionableIterableInterval< Void >
private final class InsideIterable extends AbstractWrappedPositionableLocalizable< PositionableWrappedIterableRegion< T > > implements PositionableIterableInterval< Void >
{
InsideIterable()
{
Expand Down Expand Up @@ -172,7 +172,7 @@ public long max( final int d )
}
}

class PositionableInsideCursor extends OffsetLocalizable< Cursor< Void > > implements Cursor< Void >
private final class PositionableInsideCursor extends OffsetLocalizable< Cursor< Void > > implements Cursor< Void >
{
public PositionableInsideCursor( final Cursor< Void > cursor )
{
Expand Down

0 comments on commit ec2d46d

Please sign in to comment.