biz.c24.io.api.data
Class AlignToBorder

java.lang.Object
  extended by biz.c24.io.api.data.AlignToBorder
All Implemented Interfaces:
C24Cloneable, Cloneable

public class AlignToBorder
extends Object
implements C24Cloneable

Align to border value object.

Represents the align to border information.

Version:
$Revision: 12173 $ $Date: 2008-08-29 08:30:13 -0400 (Fri, 29 Aug 2008) $

Constructor Summary
AlignToBorder(String character, int border)
          Constructor with padding symbols and border size.
 
Method Summary
 Object clone()
          Creates and returns a copy of this object.
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
 int getBorder()
          Returns the border size on which the data will be aligned.
 String getCharacter()
          Returns the characters that will be used to fill the gap to nearest align border.
 int hashCode()
          Returns a hash code value for this instance.
 String toString()
          Returns a string representation of this instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlignToBorder

public AlignToBorder(String character,
                     int border)
Constructor with padding symbols and border size.

Parameters:
character - the padding symbol that should be used to fill the gap to align the nearest border.
border - the align border size.
Method Detail

getCharacter

public final String getCharacter()
Returns the characters that will be used to fill the gap to nearest align border.

Returns:
The charachters as string.

getBorder

public final int getBorder()
Returns the border size on which the data will be aligned.

Returns:
The size of border.

clone

public Object clone()
Creates and returns a copy of this object.

Specified by:
clone in interface C24Cloneable
Overrides:
clone in class Object
Returns:
a clone of this instance.
See Also:
Cloneable

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false - otherwise.
See Also:
hashCode(), Hashtable

hashCode

public int hashCode()
Returns a hash code value for this instance.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.
See Also:
equals(Object), Hashtable

toString

public String toString()
Returns a string representation of this instance.

Overrides:
toString in class Object
Returns:
a string representation of location.


C24 Technologies © 2002-2012: All Rights Reserved.