cheese-champion-1/doc/Queue.html

259 lines
8.1 KiB
HTML
Raw Normal View History

2020-09-14 09:10:02 +02:00
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (11.0.2) on Mon Sep 14 08:34:03 CEST 2020 -->
<title>Queue</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-09-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="Queue";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":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 CLASS DATA ======== -->
<main role="main">
<div class="header">
<h2 title="Class Queue" class="title">Class Queue&lt;ContentType&gt;</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>Queue&lt;ContentType&gt;</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public class <span class="typeNameLabel">Queue&lt;ContentType&gt;</span>
extends java.lang.Object</pre>
<div class="block"><p>
Materialien zu den zentralen NRW-Abiturpruefungen im Fach Informatik ab 2018
</p>
<p>
Generische Klasse Queue<ContentType>
</p>
<p>
Objekte der generischen Klasse Queue (Warteschlange) verwalten beliebige
Objekte vom Typ ContentType nach dem First-In-First-Out-Prinzip, d.h., das
zuerst abgelegte Objekt wird als erstes wieder entnommen. Alle Methoden haben
eine konstante Laufzeit, unabhaengig von der Anzahl der verwalteten Objekte.
</p></div>
<dl>
<dt><span class="simpleTagLabel">Version:</span></dt>
<dd>Generisch_02 2014-02-21</dd>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Qualitaets- und UnterstuetzungsAgentur - Landesinstitut fuer Schule</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">Queue</a></span>()</code></th>
<td class="colLast">
<div class="block">Eine leere Schlange wird erzeugt.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<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="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#dequeue()">dequeue</a></span>()</code></th>
<td class="colLast">
<div class="block">Das erste Objekt wird aus der Schlange entfernt.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#enqueue(ContentType)">enqueue</a></span>&#8203;(<a href="Queue.html" title="type parameter in Queue">ContentType</a>&nbsp;pContent)</code></th>
<td class="colLast">
<div class="block">Das Objekt pContentType wird an die Schlange angehaengt.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="Queue.html" title="type parameter in Queue">ContentType</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#front()">front</a></span>()</code></th>
<td class="colLast">
<div class="block">Die Anfrage liefert das erste Objekt der Schlange.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isEmpty()">isEmpty</a></span>()</code></th>
<td class="colLast">
<div class="block">Die Anfrage liefert den Wert true, wenn die Schlange keine Objekte enthaelt,
sonst liefert sie den Wert false.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Queue</h4>
<pre>public&nbsp;Queue()</pre>
<div class="block">Eine leere Schlange wird erzeugt.
Objekte, die in dieser Schlange verwaltet werden, muessen vom Typ
ContentType sein.</div>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="isEmpty()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmpty</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isEmpty()</pre>
<div class="block">Die Anfrage liefert den Wert true, wenn die Schlange keine Objekte enthaelt,
sonst liefert sie den Wert false.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true, falls die Schlange leer ist, sonst false</dd>
</dl>
</li>
</ul>
<a id="enqueue(java.lang.Object)">
<!-- -->
</a><a id="enqueue(ContentType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enqueue</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;enqueue&#8203;(<a href="Queue.html" title="type parameter in Queue">ContentType</a>&nbsp;pContent)</pre>
<div class="block">Das Objekt pContentType wird an die Schlange angehaengt.
Falls pContentType gleich null ist, bleibt die Schlange unveraendert.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>pContent</code> - das anzuhaengende Objekt vom Typ ContentType</dd>
</dl>
</li>
</ul>
<a id="dequeue()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dequeue</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;dequeue()</pre>
<div class="block">Das erste Objekt wird aus der Schlange entfernt.
Falls die Schlange leer ist, wird sie nicht veraendert.</div>
</li>
</ul>
<a id="front()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>front</h4>
<pre class="methodSignature">public&nbsp;<a href="Queue.html" title="type parameter in Queue">ContentType</a>&nbsp;front()</pre>
<div class="block">Die Anfrage liefert das erste Objekt der Schlange.
Die Schlange bleibt unveraendert.
Falls die Schlange leer ist, wird null zurueckgegeben.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>das erste Objekt der Schlange vom Typ ContentType oder null,
falls die Schlange leer ist</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
</body>
</html>