java.lang.Object
com.betterdiff.core.protocol.command.Match
- All Implemented Interfaces:
Command
public class Match extends java.lang.Object implements Command
Assign a n identification number to targeted chunk.
- Author:
- troomar
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
accept(ProtocolVisitor protocolVisitor)
Accepting a visitor to go through the protocol without having to care what command it actually is.Match
clone()
Method for copying commands from generic lists and data structures.int
getId()
int
getOrdinalNumber()
int
getYAxis()
java.lang.String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Match
public Match(int ordinalNumber, int yAxis, int id) -
Match
-
-
Method Details
-
getOrdinalNumber
public int getOrdinalNumber() -
getYAxis
public int getYAxis() -
getId
public int getId() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
clone
Description copied from interface:Command
Method for copying commands from generic lists and data structures. Cloning shouldn't use standard Java cloning routines, it should always call its supposed cloning constructor or factory method. -
accept
Description copied from interface:Command
Accepting a visitor to go through the protocol without having to care what command it actually is.
-