benjiman / lambda-type-references Goto Github PK
View Code? Open in Web Editor NEWType References using Lambdas
License: Apache License 2.0
Type References using Lambdas
License: Apache License 2.0
I am extremely interested in using portions of MethodFinder
in the development of JUnit 5.
I would therefore be very grateful if you could release at least the source code for MethodFinder
under the Eclipse Public License -v 1.0.
Great work by the way, and...
Thanks in advance!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.