Giter Site home page Giter Site logo

lambda-type-references's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lambda-type-references's Issues

Provide LICENSE.txt

Hello,

tl:dr; Can you please provide an Apache License v2 compatible LICENSE.txt for this repository? I'd like to use (parts) of this code in the Apache Commons BeanUtils2 library.

Long Version: I'm working on the Apache Commons BeanUtils2 project - a rewrite of the Apache Commons BeanUtils library. BeanUtils2 provides a fluent API for reflection operations:

import static org.apache.commons.beanutils2.BeanUtils.on
...
on(myBean).set("name").with("Peter");

Currently I'm working on an API that let's users configure type conversion in a fluent way:

import static org.apache.commons.beanutils2.ConverterBuilder.from;
...
BeanUtils.newInstance()
   .withConverters(
      from(String.class).to(Integer.class).using(Integer::parseInt),
      from(String.class).to(Date.class).using(myCustomDateFormatter)
   ).build();

Further more it is possible to assign properties to a bean using a map:

Map<String, Object> properties = new HashMap<>();
properties.put("name", "peter");
properties.put("age", 48);

on(myBean).populate(properties);

When we implement a MapToBeanConverter, and combine it with the code in this repository, can can put this all together as:

on(myBean).set("address").with(
   map(
      "street" -> "Broadway 5",
      "zip" -> 10002,
      "city" -> "New York"
   )
);

And that would be pretty awesome :-) To reuse any of your code, it would have to be under Apache License v2. We would of corse give you credit for this contribution. Further more, if you're interested to join development on BeanUtils2, just ping me.

Thank you very much!
Benedikt

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.