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

com.enonic.xp.audit.CleanUpAuditLogResult Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.audit;

public final class CleanUpAuditLogResult
{
    private final long deleted;

    private CleanUpAuditLogResult( final Builder builder )
    {
        deleted = builder.deleted;
    }

    public long getDeleted()
    {
        return deleted;
    }

    public static Builder create()
    {
        return new Builder();
    }

    public static CleanUpAuditLogResult empty()
    {
        return CleanUpAuditLogResult.create().
            build();
    }

    public static final class Builder
    {
        private long deleted = 0;

        private Builder()
        {
        }

        public Builder deleted( final long value )
        {
            deleted += value;
            return this;
        }

        public CleanUpAuditLogResult build()
        {
            return new CleanUpAuditLogResult( this );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy