org.pdfsam.console.business.dto
Class Bounds

java.lang.Object
  extended by org.pdfsam.console.business.dto.Bounds
All Implemented Interfaces:
java.io.Serializable

public class Bounds
extends java.lang.Object
implements java.io.Serializable

Maps the limit of the concat command, start and end

Author:
Andrea Vacondio
See Also:
Serialized Form

Constructor Summary
Bounds()
           
Bounds(int start, int end)
           
 
Method Summary
 int getEnd()
           
 int getStart()
           
 boolean intersects(Bounds bounds)
           
 void setEnd(int end)
           
 void setStart(int start)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bounds

public Bounds()

Bounds

public Bounds(int start,
              int end)
Parameters:
start -
end -
Method Detail

getStart

public int getStart()
Returns:
the start

setStart

public void setStart(int start)
Parameters:
start - the start to set

getEnd

public int getEnd()
Returns:
the end

setEnd

public void setEnd(int end)
Parameters:
end - the end to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

intersects

public boolean intersects(Bounds bounds)
Parameters:
bounds -
Returns:
true if the input bounds intersects this Bounds instance