Coder Social home page Coder Social logo

diffy's Introduction

GitHub Build Status GitHub code size in bytes GitHub All Releases GitHub issues
Codecov GitHub top language GitHub commit activity GitHub contributors Quality Gate Status

Diffy

The Diffy project

Features

  • Any object can be used despite the references dependency graph
  • Finds the differences between two objects
  • Returns the object's difference in an easy iterable structure
  • Requires no changes to your existing class hierarchy
  • Provides a simple configurable API
  • No extra runtime dependencies

Installation

Using with Maven:

<dependency>
    <groupId>com.wildbeeslabs.sensiblemetrics</groupId>
    <artifactId>diffy</artifactId>
    <version>1.1.0</version>
</dependency>

Using with Gradle:

compile 'com.wildbeeslabs.sensiblemetrics:diffy:1.1.0'

Packaging:

Package the application with all the dependencies:

mvn clean compile assembly:single

Technical description

As a result represents an iterable structure of fields difference entries by any given object (custom object /fields comparators can be used if provided any).

// First object to be compared by
Object object1 = new Object();
// Last object to be compared with
Object object2 = new Object();
...
// Difference comparator instance
DiffComparator<Object> diffComparator = DefaultDiffComparatorFactory.create(Object.class);
// ResultSet of objects comparison
Iterable<DefaultDiffEntry> iterable = diffComparator.diffCompare(object1, object2);

Contribution

If you discovered a bug or have just an idea for a new feature development, please don't hesitate to contact our team at Pull Request

More information regarding a contribution involvement process can be found at: here


Powered by IntelliJ IDEA IDE

diffy's People

Contributors

alexrogalskiy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.