org.digidoc4j.ddoc.c14n.FragmentBase_Bounds Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ddoc4j Show documentation
Show all versions of ddoc4j Show documentation
DDoc4J is Java Library for validating DDOC documents. It's not recommended to use it directly but rather through DigiDoc4J's API.
The newest version!
package org.digidoc4j.ddoc.c14n;
public class FragmentBase_Bounds {
public int Offset;
public int Length;
public FragmentBase_Bounds(int o, int len)
{
this.Offset = o;
this.Length = len;
}
public boolean InBounds(int p)
{
if ((p < this.Offset))
{
return false;
}
return (p < (this.Offset + this.Length));
}
}