add isEmpty() and toString() to LineSpacingDescriptor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144644 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1eba38d7cf
commit
2a96d74ace
@ -74,4 +74,19 @@ public final class LineSpacingDescriptor
|
|||||||
|
|
||||||
return _dyaLine == lspd._dyaLine && _fMultiLinespace == lspd._fMultiLinespace;
|
return _dyaLine == lspd._dyaLine && _fMultiLinespace == lspd._fMultiLinespace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isEmpty()
|
||||||
|
{
|
||||||
|
return _dyaLine == 0 && _fMultiLinespace == 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
if ( isEmpty() )
|
||||||
|
return "[LSPD] EMPTY";
|
||||||
|
|
||||||
|
return "[LSPD] (dyaLine: " + _dyaLine + "; fMultLinespace: "
|
||||||
|
+ _fMultiLinespace + ")";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user