Class MergeUtils


  • public class MergeUtils
    extends java.lang.Object
    Utilities for merging objects based on Mergeable annotations.
    • Constructor Summary

      Constructors 
      Constructor Description
      MergeUtils()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getBlacklist()  
      void merge​(java.lang.Object parent, java.lang.Object update)
      Merges two objects.
      void setBlacklist​(java.util.Set<java.lang.String> blacklist)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MergeUtils

        public MergeUtils()
    • Method Detail

      • merge

        public void merge​(java.lang.Object parent,
                          java.lang.Object update)
        Merges two objects. Updates the first object by applying the second one to it.
        Parameters:
        parent - the parent object which is to be updated
        update - the object to be applied to the parent object
      • getBlacklist

        public java.util.Set<java.lang.String> getBlacklist()
      • setBlacklist

        public void setBlacklist​(java.util.Set<java.lang.String> blacklist)