Code Monkey home page Code Monkey logo

Comments (11)

mikepenz avatar mikepenz commented on June 6, 2024

@rubengees I think this is out of scope. You can provide a new list to the FastAdapter at any time. And sorting is as easy as

Collections.sort()

http://docs.oracle.com/javase/6/docs/api/java/util/Collections.html#sort(java.util.List)

No need to add more methods here, as it would just call this single method. I prefer this library to stay really focused.

from fastadapter.

rubengees avatar rubengees commented on June 6, 2024

Yeah sure I know that I can sort myself, but it would be really handy if I won't have to. When I read the description of FastAdapter I thought it was some kind of All-in-one adapter which does all the common things you do with lists without the need for you to write the boilerplate yourself. So I don't think this is out of scope. The lists of other languages like C# offer such functionality out of the box.
And even if it easy, I think it just belongs to the adapter to do such tasks and not into the activity or wherever the adapter is used.

from fastadapter.

Rainer-Lang avatar Rainer-Lang commented on June 6, 2024

@mikepenz In your way I have to get all items from adapter, sort them and then put them back in the adapter? Is this correct?

from fastadapter.

mikepenz avatar mikepenz commented on June 6, 2024

@Rainer-Lang normally you know about your items. You have to add them at some point. So I assume that you still know about the items at the point of time when you want to sort them

from fastadapter.

Rainer-Lang avatar Rainer-Lang commented on June 6, 2024

@mikepenz And for "only" re-sorting, which method would you suggest?

  1. set()
  2. setNewList()

from fastadapter.

Rainer-Lang avatar Rainer-Lang commented on June 6, 2024

@rubengees Please take a look at the newest version.

from fastadapter.

rubengees avatar rubengees commented on June 6, 2024

Great! Thank you.

from fastadapter.

Rainer-Lang avatar Rainer-Lang commented on June 6, 2024

@rubengees Would you like to provide this project with a little sample to this feature?

from fastadapter.

Rainer-Lang avatar Rainer-Lang commented on June 6, 2024

@rubengees https://github.com/mikepenz/FastAdapter/blob/develop/CONTRIBUTORS.md 👍

from fastadapter.

rubengees avatar rubengees commented on June 6, 2024

Nice, thank you for adding me 👌

from fastadapter.

Rainer-Lang avatar Rainer-Lang commented on June 6, 2024

Thanks for contributing.

from fastadapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.