All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.digidoc4j.ddoc.c14n.FragmentBase_Bounds Maven / Gradle / Ivy

Go to download

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));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy