Skip to content

Commit

Permalink
Add missing getType() implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed May 18, 2024
1 parent 69b9539 commit 917109b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ public RealRandomAccess< T > realRandomAccess( final RealInterval interval )
return new Access();
}

@Override
public T getType()
{
return insideValue;
}

public RealInterval getInterval()
{
return interval;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ public RealRandomAccess< Void > realRandomAccess( final RealInterval interval )
{
return access;
}

@Override
public Void getType()
{
return null;
}
};

private final RealRandomAccess< Void > access = new RealRandomAccess< Void >()
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/bdv/util/ConstantRandomAccessible.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,10 @@ public RandomAccess< T > randomAccess( final Interval interval )
{
return new ConstantRandomAccess();
}

@Override
public T getType()
{
return constant;
}
}

0 comments on commit 917109b

Please sign in to comment.