org.scijava.usage
Class UsageStats

java.lang.Object
  extended by org.scijava.AbstractBasicDetails
      extended by org.scijava.usage.UsageStats
All Implemented Interfaces:
BasicDetails, Identifiable, Locatable, Versioned

public class UsageStats
extends AbstractBasicDetails
implements Identifiable, Locatable, Versioned

Data structure storing usage statistics for a particular identifier.

Author:
Curtis Rueden

Constructor Summary
UsageStats(Object o)
          Creates usage statistics for the given object.
 
Method Summary
 long getCount()
          Gets the number of times the object has been used.
 String getIdentifier()
          Gets a string intended to function as an identifier for the object.
 String getLocation()
          Gets the URL string defining the object's location.
 String getVersion()
          Gets the version of the object.
 void increment()
          Increment the object's usage count.
 
Methods inherited from class org.scijava.AbstractBasicDetails
get, getDescription, getLabel, getName, is, set, setDescription, setLabel, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsageStats

public UsageStats(Object o)
Creates usage statistics for the given object. Note that while several pieces of information are initially extracted from the object, no reference is retained to the object itself.

Method Detail

getCount

public long getCount()
Gets the number of times the object has been used.


increment

public void increment()
Increment the object's usage count.


getIdentifier

public String getIdentifier()
Description copied from interface: Identifiable
Gets a string intended to function as an identifier for the object.

Specified by:
getIdentifier in interface Identifiable

getLocation

public String getLocation()
Description copied from interface: Locatable
Gets the URL string defining the object's location.

Specified by:
getLocation in interface Locatable

getVersion

public String getVersion()
Description copied from interface: Versioned
Gets the version of the object.

Specified by:
getVersion in interface Versioned


Copyright © 2009–2014 SciJava. All rights reserved.