Skip to content

Commit

Permalink
Override clear method in custom list views
Browse files Browse the repository at this point in the history
  • Loading branch information
li-ukumar committed Apr 24, 2024
1 parent 46c92a9 commit 3fb7d5b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,9 @@ public boolean addAll(int index, java.util.Collection<? extends CharSequence> c)
public boolean remove(Object o) {
return utf8List.remove(new Utf8(o.toString()));
}

@Override
public void clear() {
utf8List.clear();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@ public boolean addAll(int index, java.util.Collection<? extends String> c) {
public boolean remove(Object o) {
return _utf8List.remove(new Utf8(o.toString()));
}

@Override
public void clear() {
_utf8List.clear();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ public boolean addAll(int index, java.util.Collection<? extends Utf8> c) {
public boolean remove(Object o) {
return utf8List.remove(o);
}

@Override
public void clear() {
utf8List.clear();
}
}

0 comments on commit 3fb7d5b

Please sign in to comment.