diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-09-16 10:17:45 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-09-16 10:17:45 -0400 |
commit | 9b2a4b8646f2baea660add10c18b191358bc60bf (patch) | |
tree | 8f649030eb6d9dae8dc39fc66995ccb95fc08cb3 /1.0/sangria-core/apidocs/com/tavianator/sangria/core/Priority.html | |
parent | 1f42a955a8d4e078d7e0526f5c31dc7a71ef90c0 (diff) | |
download | sangria-9b2a4b8646f2baea660add10c18b191358bc60bf.tar.xz |
Add version 1.0 site.
Diffstat (limited to '1.0/sangria-core/apidocs/com/tavianator/sangria/core/Priority.html')
-rw-r--r-- | 1.0/sangria-core/apidocs/com/tavianator/sangria/core/Priority.html | 402 |
1 files changed, 402 insertions, 0 deletions
diff --git a/1.0/sangria-core/apidocs/com/tavianator/sangria/core/Priority.html b/1.0/sangria-core/apidocs/com/tavianator/sangria/core/Priority.html new file mode 100644 index 0000000..d41a4a5 --- /dev/null +++ b/1.0/sangria-core/apidocs/com/tavianator/sangria/core/Priority.html @@ -0,0 +1,402 @@ +<!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_20) on Tue Sep 16 10:11:51 EDT 2014 --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Priority (Sangria Core 1.2-SNAPSHOT API)</title> +<meta name="date" content="2014-09-16"> +<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="Priority (Sangria Core 1.2-SNAPSHOT API)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":9,"i2":10,"i3":9,"i4":10,"i5":10,"i6":10,"i7":10}; +var tabs = {65535:["t0","All Methods"],1:["t1","Static 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="../../../../com/tavianator/sangria/core/package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/Priority.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/tavianator/sangria/core/PrettyTypes.html" title="class in com.tavianator.sangria.core"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../com/tavianator/sangria/core/TypeLiterals.html" title="class in com.tavianator.sangria.core"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?com/tavianator/sangria/core/Priority.html" target="_top">Frames</a></li> +<li><a href="Priority.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../allclasses-noframe.html">All 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: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </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.tavianator.sangria.core</div> +<h2 title="Class Priority" class="title">Class Priority</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://docs.oracle.com/javase/7/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.tavianator.sangria.core.Priority</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a>></dd> +</dl> +<hr> +<br> +<pre>public class <span class="typeNameLabel">Priority</span> +extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> +implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a>></pre> +<div class="block">A loosely-coupled, infinitely divisible priority/weight system. + + <p> + This class implements an extensible priority system based on lexicographical ordering. In its simplest use, <code>Priority.create(0)</code> is ordered before <code>Priority.create(1)</code>, then <code>Priority.create(2)</code>, etc. + </p> + + <p> + To create a priority that is ordered between two existing ones, simply add another parameter: <code>Priority.create(1, 1)</code> comes after <code>Priority.create(1)</code>, but before <code>Priority.create(2)</code>. In this way, + priorities can always be inserted anywhere in a sequence. + </p> + + <p> + The <a href="../../../../com/tavianator/sangria/core/Priority.html#next--"><code>next()</code></a> method creates a priority that is ordered immediately following the current one, and is distinct + from all priorities obtained by any other means. This provides a convenient way to order entire segments of lists. + </p> + + <p> + A special priority, obtained by <code>Priority.getDefault()</code>, sorts before all other priorities. + </p></div> +<dl> +<dt><span class="simpleTagLabel">Since:</span></dt> +<dd>1.1</dd> +<dt><span class="simpleTagLabel">Version:</span></dt> +<dd>1.1</dd> +<dt><span class="simpleTagLabel">Author:</span></dt> +<dd>Tavian Barnes (tavianator@tavianator.com)</dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========== 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"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/tavianator/sangria/core/Priority.html#compareTo-com.tavianator.sangria.core.Priority-">compareTo</a></span>(<a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a> o)</code> </td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code>static <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/tavianator/sangria/core/Priority.html#create-int-int...-">create</a></span>(int weight, + int... weights)</code> +<div class="block">Create a <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core"><code>Priority</code></a> with the given sequence.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/tavianator/sangria/core/Priority.html#equals-java.lang.Object-">equals</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</code> </td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code>static <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/tavianator/sangria/core/Priority.html#getDefault--">getDefault</a></span>()</code> </td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/tavianator/sangria/core/Priority.html#hashCode--">hashCode</a></span>()</code> </td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/tavianator/sangria/core/Priority.html#isDefault--">isDefault</a></span>()</code> </td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code><a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/tavianator/sangria/core/Priority.html#next--">next</a></span>()</code> </td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/tavianator/sangria/core/Priority.html#toString--">toString</a></span>()</code> </td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/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/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="getDefault--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getDefault</h4> +<pre>public static <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a> getDefault()</pre> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>The default priority, which comes before all other priorities.</dd> +</dl> +</li> +</ul> +<a name="create-int-int...-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>create</h4> +<pre>public static <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a> create(int weight, + int... weights)</pre> +<div class="block">Create a <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core"><code>Priority</code></a> with the given sequence.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>weight</code> - The first value of the weight sequence.</dd> +<dd><code>weights</code> - An integer sequence. These sequences are sorted lexicographically, so <code>Priority.create(1)</code> + sorts before <code>Priority.create(1, 1)</code>, which sorts before <code>Priority.create(2)</code>.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A new <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core"><code>Priority</code></a>.</dd> +</dl> +</li> +</ul> +<a name="isDefault--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isDefault</h4> +<pre>public boolean isDefault()</pre> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>Whether this priority originated in a call to <a href="../../../../com/tavianator/sangria/core/Priority.html#getDefault--"><code>getDefault()</code></a>.</dd> +</dl> +</li> +</ul> +<a name="next--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>next</h4> +<pre>public <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a> next()</pre> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>A new <a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core"><code>Priority</code></a> which immediately follows this one, and which is distinct from all other + priorities obtained by <a href="../../../../com/tavianator/sangria/core/Priority.html#create-int-int...-"><code>create(int, int...)</code></a>.</dd> +</dl> +</li> +</ul> +<a name="equals-java.lang.Object-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>equals</h4> +<pre>public boolean equals(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> +</dl> +</li> +</ul> +<a name="hashCode--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>hashCode</h4> +<pre>public int hashCode()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> +</dl> +</li> +</ul> +<a name="compareTo-com.tavianator.sangria.core.Priority-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>compareTo</h4> +<pre>public int compareTo(<a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a> o)</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true#compareTo-T-" title="class or interface in java.lang">compareTo</a></code> in interface <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../com/tavianator/sangria/core/Priority.html" title="class in com.tavianator.sangria.core">Priority</a>></code></dd> +</dl> +</li> +</ul> +<a name="toString--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>toString</h4> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> +</dl> +</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="../../../../com/tavianator/sangria/core/package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/Priority.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/tavianator/sangria/core/PrettyTypes.html" title="class in com.tavianator.sangria.core"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../com/tavianator/sangria/core/TypeLiterals.html" title="class in com.tavianator.sangria.core"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?com/tavianator/sangria/core/Priority.html" target="_top">Frames</a></li> +<li><a href="Priority.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../allclasses-noframe.html">All 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: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </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 © 2014. All rights reserved.</small></p> +</body> +</html> |