GithubHelp home page GithubHelp logo

Comments (7)

yannicklamprecht avatar yannicklamprecht commented on August 15, 2024 1

Would rather do that like the following.

CompletableFuture<Response<Map<UUID, PermissionHolder>>> retrievePermissionMap()

from treasury.

lokka30 avatar lokka30 commented on August 15, 2024

Would rather do that like the following.

CompletableFuture<Response<Map<UUID, PermissionHolder>>> retrievePermissionMap()

I see the merit in keeping a UUID map present, if we go for the permission holder solution then I would also prefer this option over eliminating both maps.

from treasury.

lokka30 avatar lokka30 commented on August 15, 2024

Thank you for your response by the way. :)

from treasury.

MrIvanPlays avatar MrIvanPlays commented on August 15, 2024

PermissionHolder has the potential of creating much bigger overhead rather than what is currently implemented. I don't understand what's your problem with the return type?

from treasury.

lokka30 avatar lokka30 commented on August 15, 2024

PermissionHolder has the potential of creating much bigger overhead rather than what is currently implemented. I don't understand what's your problem with the return type?

I can live with the unusual and verbose return type remaining (nesting a set of map entries inside a different map), though I'd like to see if it can be improved in any form before we make the choice final.

You're right about the overhead concern. What do you think about nesting the map instead of taking the weird side-road solution of using the set of map entries?

from treasury.

MrIvanPlays avatar MrIvanPlays commented on August 15, 2024

the current solution allows for caching entries. each time you call map#entrySet (afaik) the set of entries is always generated, hence greater overload. the current solution is good in many ways, as it is much easier to loop through it rather looping through a nested map.

from treasury.

lokka30 avatar lokka30 commented on August 15, 2024

I greatly appreciate you providing your opinion on this matter, I'm still unsure myself which way to go, though as you insist that the current solution is adequate, I'll close this issue and we'll leave it as-is 🙂

from treasury.

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.