org.jenkinsci.plugins.buildenvironment.data
Class DataDifferenceObject

java.lang.Object
  extended by org.jenkinsci.plugins.buildenvironment.data.DataDifferenceObject

public class DataDifferenceObject
extends Object

Object representing the difference between two Data objects.

Author:
yboev

Constructor Summary
DataDifferenceObject(Data data1, Data data2)
          Constructor method.
 
Method Summary
 Map<String,StringPair> getDifferenceOnly()
          Returns a map objects, containing only the different entries.
 int getDifferentCount()
          Returns the number of entries that are different.
 Map<String,StringPair> getMap()
          Returns the difference map.
 String getName()
          Returns the name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataDifferenceObject

public DataDifferenceObject(Data data1,
                            Data data2)
Constructor method.

Parameters:
data1 - 1st Data object.
data2 - 2nd Data object.
Method Detail

getName

public String getName()
Returns the name.

Returns:
the name as String.

getMap

public Map<String,StringPair> getMap()
Returns the difference map.

Returns:
the map object.

getDifferentCount

public int getDifferentCount()
Returns the number of entries that are different.

Returns:
this number as int, should be >= 0.

getDifferenceOnly

public Map<String,StringPair> getDifferenceOnly()
Returns a map objects, containing only the different entries.

Returns:
the map with different entries.


Copyright © 2004-2013. All Rights Reserved.