com.kuka.nav.fleet.graph
Class ValidationNode

java.lang.Object
  extended by com.kuka.nav.fleet.graph.ValidationNode
All Implemented Interfaces:
Comparable<ValidationNode>

public class ValidationNode
extends Object
implements Comparable<ValidationNode>

Helper class for storing validation messages for a node.


Constructor Summary
ValidationNode(Integer id)
          Constructor sets the unique node id.
 
Method Summary
 void addMessage(ValidationMessage message)
          Add a validation message
 int compareTo(ValidationNode arg)
           
 boolean equals(Object obj)
           
 Integer getId()
          Returns the node id.
 List<ValidationMessage> getMessageList()
          Returns the list.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationNode

public ValidationNode(Integer id)
Constructor sets the unique node id.

Parameters:
id - node id
Method Detail

getId

public Integer getId()
Returns the node id.

Returns:
the node id

compareTo

public int compareTo(ValidationNode arg)
Specified by:
compareTo in interface Comparable<ValidationNode>

addMessage

public void addMessage(ValidationMessage message)
Add a validation message

Parameters:
message - the message

getMessageList

public List<ValidationMessage> getMessageList()
Returns the list.

Returns:
the list

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2019. All rights reserved.