Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add for utf8 method in String/Utf8/Charsequence ListViews #558

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

li-ukumar
Copy link
Member

@li-ukumar li-ukumar commented Jun 25, 2024

What

  • Adding add methods for Utf8 type in StringListView

Test

  • Existing unit tests
  • build

@li-ukumar li-ukumar changed the title Add for utf8 and equals methods in String/Utf8/Charsequence ListViews Add for utf8 method in String/Utf8/Charsequence ListViews Jun 25, 2024
Comment on lines +52 to +55
public void add(int index, Utf8 element) {
_utf8List.add(index, element);
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no such method in the base class?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. Base class only has methods for String in this case.. (Since we are extending AbstractList).

@@ -38,16 +38,30 @@ public String set(int index, String element) {
return previousValue;
}

public String set(int index, Utf8 element) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should add this method in base class/interface?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base class is java's AbstractList. We cant modify that

@li-ukumar li-ukumar merged commit 57b085e into master Jun 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants