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 Aug 19, 2024
1 parent 1db7ae7 commit 2fc86c5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/sc/fiji/labkit/ui/labeling/Labeling.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ public void setLabelOrder(Comparator<? super Label> comparator) {
labels.sort(comparator);
}

@Override
public LabelingType< Label > getType()
{
return randomAccess().getType();
}

public static class SetEntryAsBitType<T> extends BitType {

private Set<T> set = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ private void set(MyRandomAccess position, int value) {
}
}

@Override
public IntType getType()
{
return new IntType();
}

// -- Helper classes --

private class MyRandomAccess extends Point implements RandomAccess<IntType> {
Expand Down

0 comments on commit 2fc86c5

Please sign in to comment.