org.universAAL.middleware.util
Class ResourceComparator

Package class diagram package ResourceComparator
java.lang.Object
  extended by org.universAAL.middleware.util.ResourceComparator

public final class ResourceComparator
extends Object

Helper class for comparing two Resource s.

Author:
mtazari - Saied Tazari, Carsten Stockloew

Constructor Summary
ResourceComparator()
           
ResourceComparator(boolean ignoreEmptyList)
           
 
Method Summary
 boolean areEqual(Resource r1, Resource r2)
          Tests whether two Resources are equal, i.e. the Resource, all properties, and all Resources connected by properties.
 Stack getDiffsAsStack(Resource r1, Resource r2)
           
 String getDiffsAsString(Resource r1, Resource r2)
           
 void printDiffs(Resource r1, Resource r2)
          Prints the differences between two Resources to the log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceComparator

public ResourceComparator()

ResourceComparator

public ResourceComparator(boolean ignoreEmptyList)
Method Detail

areEqual

public boolean areEqual(Resource r1,
                        Resource r2)
Tests whether two Resources are equal, i.e. the Resource, all properties, and all Resources connected by properties.


printDiffs

public void printDiffs(Resource r1,
                       Resource r2)
Prints the differences between two Resources to the log.

See Also:
LogUtils.logDebug(org.universAAL.middleware.container.ModuleContext, Class, String, Object[], Throwable)

getDiffsAsStack

public Stack getDiffsAsStack(Resource r1,
                             Resource r2)

getDiffsAsString

public String getDiffsAsString(Resource r1,
                               Resource r2)


Copyright © 2014 universAAL Consortium. All Rights Reserved.