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

com.alachisoft.ncache.common.caching.statistics.customcounters.InstantaneousFlip Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.alachisoft.ncache.common.caching.statistics.customcounters;

import Alachisoft.NCache.Common.Common;

/**
 * @author Muneeb Shahid
 */
public class InstantaneousFlip {

    private long _flip;

    public InstantaneousFlip(long _flip) {
        this._flip = _flip;
    }

    public long getFlip() {
        return _flip;
    }

    public boolean equals(Object obj) {
        InstantaneousFlip other = (InstantaneousFlip) Common.readAs(obj, InstantaneousFlip.class);
        if (other != null) {
            return getFlip() == other.getFlip();
        }
        return false;
    }

    public void increment() {
        _flip++;
    }

    public InstantaneousFlip clone() {
        return new InstantaneousFlip(_flip);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy