Git Product home page Git Product logo

modelmapper-module-vavr's Introduction

modelmapper-module-vavr

License Build Status Maven Central

This is a module for modelmapper to support vavr.io features. Modelmapper is great for converting objects but cannot handle vavr.io types ootb. This project gives you an easy to use module to be able to convert your vavr types.

Register the module:

modelMapper.registerModule(new VavrModule());

Supported mappings:

The base-type Value and all its implementations.

modelmapper-module-vavr's People

Contributors

julianps avatar sullis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

modelmapper-module-vavr's Issues

Convert Java List to Vavr List

Once we update the test case as following:

	static SourceList stubSourceList() {
		final SourceList sourceList = new SourceList();
		sourceList.list = List.of(stubSource(2), stubSource(5)).toJavaList();
		return sourceList;
	}

	@Data
	static class SourceList {
		java.util.List<Source> list;
	}
	@Test
	public void testNormalList() {
		final StubFactory.DestList destList = modelMapper.map(StubFactory.stubSourceList(), StubFactory.DestList.class);
		checkListResult(destList);
	}

Then the above case will fail.

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.