com.alachisoft.ncache.common.caching.statistics.customcounters.InstantaneousFlip Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
/*
* 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);
}
}