Skip to content

Commit

Permalink
Merge pull request #47 from imglib/feature-rai-getType
Browse files Browse the repository at this point in the history
Addition of getType() API
  • Loading branch information
tpietzsch authored May 7, 2024
2 parents 7f16054 + 91bba92 commit ef8e0bb
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ Jean-Yves Tinevez and Michael Zinsmaier.</license.copyrightOwners>

<!-- NB: Deploy releases to the SciJava Maven repository. -->
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>

<imglib2.version>7.0.0</imglib2.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public LongType get()
return t;
}

@Override
public LongType getType()
{
return t;
}

@Override
public PositionRandomAccess copy()
{
Expand All @@ -97,4 +103,10 @@ public RandomAccess< LongType > randomAccess( final Interval interval )
{
return randomAccess();
}

@Override
public LongType getType()
{
return new LongType();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ public DoubleType get()
return t;
}

@Override
public DoubleType getType()
{
return t;
}

@Override
public RealPositionRealRandomAccess copy()
{
Expand All @@ -97,4 +103,10 @@ public RealPositionRealRandomAccess realRandomAccess( final RealInterval interva
{
return realRandomAccess();
}

@Override
public DoubleType getType()
{
return new DoubleType();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ public T get()
return sourceAccess.get();
}

@Override
public T getType()
{
return sourceAccess.getType();
}

@Override
public RealTransformRandomAccess copy()
{
Expand Down Expand Up @@ -127,4 +133,10 @@ public RealTransformRandomAccess randomAccess( final Interval interval )
{
return randomAccess();
}

@Override
public T getType()
{
return source.getType();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ public T get()
return sourceAccess.get();
}

@Override
public T getType()
{
return sourceAccess.getType();
}

@Override
public RealTransformRealRandomAccess copy()
{
Expand Down Expand Up @@ -149,4 +155,10 @@ public R getTransformToSource()
{
return transformToSource;
}

@Override
public T getType()
{
return source.getType();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ public T get()
return sourceAccess.get();
}

@Override
public T getType()
{
return sourceAccess.getType();
}

@Override
public StackingRealRandomAccess copy()
{
Expand Down Expand Up @@ -364,4 +370,10 @@ public int numDimensions()
{
return numDimensions;
}

@Override
public T getType()
{
return source.getType();
}
}

0 comments on commit ef8e0bb

Please sign in to comment.