Files
vilya/apidocs/com/threerings/stats/data/StatSet.html
T
2015-03-14 10:44:30 -07:00

678 lines
38 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_31) on Sat Mar 14 10:07:12 PDT 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>StatSet (Vilya Core 1.6 API)</title>
<meta name="date" content="2015-03-14">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="StatSet (Vilya Core 1.6 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/StatSet.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/threerings/stats/data/StatModifier.html" title="class in com.threerings.stats.data"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/threerings/stats/data/StatSet.Container.html" title="interface in com.threerings.stats.data"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/threerings/stats/data/StatSet.html" target="_top">Frames</a></li>
<li><a href="StatSet.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.threerings.stats.data</div>
<h2 title="Class StatSet" class="title">Class StatSet</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.threerings.presents.dobj.DSet&lt;<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;</li>
<li>
<ul class="inheritance">
<li>com.threerings.stats.data.StatSet</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>com.threerings.io.Streamable, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">StatSet</span>
extends com.threerings.presents.dobj.DSet&lt;<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;</pre>
<div class="block">A distributed set containing <a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data"><code>Stat</code></a> objects.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.Container.html" title="interface in com.threerings.stats.data">StatSet.Container</a></span></code>
<div class="block">An interface to be implemented by an entity that wishes to be notified when the contents of
a stat set change.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.com.threerings.presents.dobj.DSet">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;com.threerings.presents.dobj.DSet</h3>
<code>com.threerings.presents.dobj.DSet.Entry</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.com.threerings.io.Streamable">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;com.threerings.io.Streamable</h3>
<code>com.threerings.io.Streamable.Closure</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#StatSet--">StatSet</a></span>()</code>
<div class="block">Creates a blank stat set.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#StatSet-java.lang.Iterable-">StatSet</a></span>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;contents)</code>
<div class="block">Creates a stat set with the specified contents.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#StatSet-java.util.Iterator-">StatSet</a></span>(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a>&lt;<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;contents)</code>
<div class="block">Creates a stat set with the specified contents.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#addQuietly-com.threerings.stats.data.Stat-">addQuietly</a></span>(<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&nbsp;stat)</code>
<div class="block">Don't call this method, it's only needed by some tricky business we do when preventing
distributed object event generation for all but the bounty criteria related stats.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#addToSetStat-com.threerings.stats.data.Stat.Type-T-">addToSetStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
T&nbsp;value)</code>
<div class="block">Adds a value to a <a href="../../../../com/threerings/stats/data/SetStat.html" title="class in com.threerings.stats.data"><code>SetStat</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#appendStat-com.threerings.stats.data.Stat.Type-int-">appendStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;value)</code>
<div class="block">Appends an integer value to an <a href="../../../../com/threerings/stats/data/IntArrayStat.html" title="class in com.threerings.stats.data"><code>IntArrayStat</code></a>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#containsValue-com.threerings.stats.data.Stat.Type-T-">containsValue</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
T&nbsp;value)</code>
<div class="block">Returns true if the specified <a href="../../../../com/threerings/stats/data/SetStat.html" title="class in com.threerings.stats.data"><code>SetStat</code></a> contains the specified value, false
otherwise.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#getIntArrayStat-com.threerings.stats.data.Stat.Type-">getIntArrayStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type)</code>
<div class="block">Returns the current value of the specified integer array statistic.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#getIntStat-com.threerings.stats.data.Stat.Type-">getIntStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type)</code>
<div class="block">Returns the current value of the specified integer statistic.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#getMapValue-com.threerings.stats.data.Stat.Type-java.lang.String-">getMapValue</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Returns the value to which the specified string is mapped in a <a href="../../../../com/threerings/stats/data/StringMapStat.html" title="class in com.threerings.stats.data"><code>StringMapStat</code></a> or zero
if the value has not been mapped.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#getMaxIntStat-com.threerings.stats.data.Stat.Type-">getMaxIntStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type)</code>
<div class="block">Returns the maximum value by which the specified integer statistic has ever been
incremented.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#getSetStatSize-com.threerings.stats.data.Stat.Type-">getSetStatSize</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type)</code>
<div class="block">Returns the current size of the specified SetStat statistic.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#incrementMapStat-com.threerings.stats.data.Stat.Type-java.lang.String-int-">incrementMapStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value,
int&nbsp;amount)</code>
<div class="block">Increments a string value in a <a href="../../../../com/threerings/stats/data/StringMapStat.html" title="class in com.threerings.stats.data"><code>StringMapStat</code></a>.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#incrementStat-com.threerings.stats.data.Stat.Type-int-">incrementStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;delta)</code>
<div class="block">Increments an integer statistic in this set.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#maxStat-com.threerings.stats.data.Stat.Type-int-">maxStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;value)</code>
<div class="block">Sets an integer stat to the specified value, if it exceeds our existing recorded value.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#setContainer-com.threerings.stats.data.StatSet.Container-">setContainer</a></span>(<a href="../../../../com/threerings/stats/data/StatSet.Container.html" title="interface in com.threerings.stats.data">StatSet.Container</a>&nbsp;container)</code>
<div class="block">Wires this stat set up to a containing user object.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#setStat-com.threerings.stats.data.Stat.Type-int-">setStat</a></span>(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;value)</code>
<div class="block">Sets an integer statistic in this set.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>&lt;T extends <a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;<br>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/threerings/stats/data/StatSet.html#syncStat-com.threerings.stats.data.StatModifier-">syncStat</a></span>(<a href="../../../../com/threerings/stats/data/StatModifier.html" title="class in com.threerings.stats.data">StatModifier</a>&lt;T&gt;&nbsp;modifier)</code>
<div class="block">Updates a stat in this set, using the supplied StatModifier.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.com.threerings.presents.dobj.DSet">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;com.threerings.presents.dobj.DSet</h3>
<code>asSet, clone, compare, contains, containsKey, entries, get, isEmpty, iterator, newDSet, newDSet, readObject, size, toArray, toArray, toArrayList, toString, typedClone, writeObject</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;java.lang.<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a></h3>
<code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true#forEach-java.util.function.Consumer-" title="class or interface in java.lang">forEach</a>, <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true#spliterator--" title="class or interface in java.lang">spliterator</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="StatSet-java.lang.Iterable-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StatSet</h4>
<pre>public&nbsp;StatSet(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;contents)</pre>
<div class="block">Creates a stat set with the specified contents.</div>
</li>
</ul>
<a name="StatSet-java.util.Iterator-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StatSet</h4>
<pre>public&nbsp;StatSet(<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a>&lt;<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;contents)</pre>
<div class="block">Creates a stat set with the specified contents.</div>
</li>
</ul>
<a name="StatSet--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>StatSet</h4>
<pre>public&nbsp;StatSet()</pre>
<div class="block">Creates a blank stat set.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setContainer-com.threerings.stats.data.StatSet.Container-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setContainer</h4>
<pre>public&nbsp;void&nbsp;setContainer(<a href="../../../../com/threerings/stats/data/StatSet.Container.html" title="interface in com.threerings.stats.data">StatSet.Container</a>&nbsp;container)</pre>
<div class="block">Wires this stat set up to a containing user object. All subsequent modifications will be
published to the container.</div>
</li>
</ul>
<a name="syncStat-com.threerings.stats.data.StatModifier-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>syncStat</h4>
<pre>public&nbsp;&lt;T extends <a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&gt;&nbsp;void&nbsp;syncStat(<a href="../../../../com/threerings/stats/data/StatModifier.html" title="class in com.threerings.stats.data">StatModifier</a>&lt;T&gt;&nbsp;modifier)</pre>
<div class="block">Updates a stat in this set, using the supplied StatModifier. This function should
only be called after a successful stat modification has been made to the StatRepository.
It will increment the Stat's modCount, and won't set its dirty bit if it's not already
set, to prevent the Stat from being re-written to the repo unnecessarily.</div>
</li>
</ul>
<a name="setStat-com.threerings.stats.data.Stat.Type-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStat</h4>
<pre>public&nbsp;void&nbsp;setStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;value)</pre>
<div class="block">Sets an integer statistic in this set.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/IntStat.html" title="class in com.threerings.stats.data"><code>IntStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="maxStat-com.threerings.stats.data.Stat.Type-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>maxStat</h4>
<pre>public&nbsp;void&nbsp;maxStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;value)</pre>
<div class="block">Sets an integer stat to the specified value, if it exceeds our existing recorded value.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/IntStat.html" title="class in com.threerings.stats.data"><code>IntStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="incrementStat-com.threerings.stats.data.Stat.Type-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>incrementStat</h4>
<pre>public&nbsp;void&nbsp;incrementStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;delta)</pre>
<div class="block">Increments an integer statistic in this set.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/IntStat.html" title="class in com.threerings.stats.data"><code>IntStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="appendStat-com.threerings.stats.data.Stat.Type-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendStat</h4>
<pre>public&nbsp;void&nbsp;appendStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
int&nbsp;value)</pre>
<div class="block">Appends an integer value to an <a href="../../../../com/threerings/stats/data/IntArrayStat.html" title="class in com.threerings.stats.data"><code>IntArrayStat</code></a>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/IntArrayStat.html" title="class in com.threerings.stats.data"><code>IntArrayStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="addToSetStat-com.threerings.stats.data.Stat.Type-java.lang.Object-">
<!-- -->
</a><a name="addToSetStat-com.threerings.stats.data.Stat.Type-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addToSetStat</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;void&nbsp;addToSetStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
T&nbsp;value)</pre>
<div class="block">Adds a value to a <a href="../../../../com/threerings/stats/data/SetStat.html" title="class in com.threerings.stats.data"><code>SetStat</code></a>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not
an <a href="../../../../com/threerings/stats/data/SetStat.html" title="class in com.threerings.stats.data"><code>SetStat</code></a> parameterized on the given type.</dd>
</dl>
</li>
</ul>
<a name="incrementMapStat-com.threerings.stats.data.Stat.Type-java.lang.String-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>incrementMapStat</h4>
<pre>public&nbsp;void&nbsp;incrementMapStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value,
int&nbsp;amount)</pre>
<div class="block">Increments a string value in a <a href="../../../../com/threerings/stats/data/StringMapStat.html" title="class in com.threerings.stats.data"><code>StringMapStat</code></a>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/StringMapStat.html" title="class in com.threerings.stats.data"><code>StringMapStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getIntStat-com.threerings.stats.data.Stat.Type-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIntStat</h4>
<pre>public&nbsp;int&nbsp;getIntStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type)</pre>
<div class="block">Returns the current value of the specified integer statistic.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/IntStat.html" title="class in com.threerings.stats.data"><code>IntStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getMaxIntStat-com.threerings.stats.data.Stat.Type-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxIntStat</h4>
<pre>public&nbsp;int&nbsp;getMaxIntStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type)</pre>
<div class="block">Returns the maximum value by which the specified integer statistic has ever been
incremented.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/MaxIntStat.html" title="class in com.threerings.stats.data"><code>MaxIntStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getIntArrayStat-com.threerings.stats.data.Stat.Type-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIntArrayStat</h4>
<pre>public&nbsp;int[]&nbsp;getIntArrayStat(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type)</pre>
<div class="block">Returns the current value of the specified integer array statistic.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/IntArrayStat.html" title="class in com.threerings.stats.data"><code>IntArrayStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getSetStatSize-com.threerings.stats.data.Stat.Type-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSetStatSize</h4>
<pre>public&nbsp;int&nbsp;getSetStatSize(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type)</pre>
<div class="block">Returns the current size of the specified SetStat statistic.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - thrown if the registered type of the specified stat is not an
<a href="../../../../com/threerings/stats/data/SetStat.html" title="class in com.threerings.stats.data"><code>SetStat</code></a>.</dd>
</dl>
</li>
</ul>
<a name="containsValue-com.threerings.stats.data.Stat.Type-java.lang.Object-">
<!-- -->
</a><a name="containsValue-com.threerings.stats.data.Stat.Type-T-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsValue</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;boolean&nbsp;containsValue(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
T&nbsp;value)</pre>
<div class="block">Returns true if the specified <a href="../../../../com/threerings/stats/data/SetStat.html" title="class in com.threerings.stats.data"><code>SetStat</code></a> contains the specified value, false
otherwise.</div>
</li>
</ul>
<a name="getMapValue-com.threerings.stats.data.Stat.Type-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMapValue</h4>
<pre>public&nbsp;int&nbsp;getMapValue(<a href="../../../../com/threerings/stats/data/Stat.Type.html" title="interface in com.threerings.stats.data">Stat.Type</a>&nbsp;type,
<a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</pre>
<div class="block">Returns the value to which the specified string is mapped in a <a href="../../../../com/threerings/stats/data/StringMapStat.html" title="class in com.threerings.stats.data"><code>StringMapStat</code></a> or zero
if the value has not been mapped.</div>
</li>
</ul>
<a name="addQuietly-com.threerings.stats.data.Stat-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>addQuietly</h4>
<pre>public&nbsp;void&nbsp;addQuietly(<a href="../../../../com/threerings/stats/data/Stat.html" title="class in com.threerings.stats.data">Stat</a>&nbsp;stat)</pre>
<div class="block">Don't call this method, it's only needed by some tricky business we do when preventing
distributed object event generation for all but the bounty criteria related stats.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/StatSet.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/threerings/stats/data/StatModifier.html" title="class in com.threerings.stats.data"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/threerings/stats/data/StatSet.Container.html" title="interface in com.threerings.stats.data"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/threerings/stats/data/StatSet.html" target="_top">Frames</a></li>
<li><a href="StatSet.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2015. All rights reserved.</small></p>
</body>
</html>