1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_03) on Tue Jan 20 08:29:53 EST 2009 -->
6<TITLE>
7RepeatedCharacterSequence
8</TITLE>
9
10<META NAME="date" CONTENT="2009-01-20">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="/stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="RepeatedCharacterSequence";
19    }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
31<!-- ========= START OF TOP NAVBAR ======= -->
32<A NAME="navbar_top"><!-- --></A>
33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35<TR>
36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37<A NAME="navbar_top_firstrow"><!-- --></A>
38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39  <TR ALIGN="center" VALIGN="top">
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47  </TR>
48</TABLE>
49</TD>
50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51</EM>
52</TD>
53</TR>
54
55<TR>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/FlatCharSequenceRope.html" title="class in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html" title="class in org.ahmadsoft.ropes.impl"><B>NEXT CLASS</B></A></FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60  <A HREF="/index.html?org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="RepeatedCharacterSequence.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62&nbsp;<SCRIPT type="text/javascript">
63  <!--
64  if(window==top) {
65    document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>');
66  }
67  //-->
68</SCRIPT>
69<NOSCRIPT>
70  <A HREF="/allclasses-noframe.html"><B>All Classes</B></A>
71</NOSCRIPT>
72
73
74</FONT></TD>
75</TR>
76<TR>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81</TR>
82</TABLE>
83<A NAME="skip-navbar_top"></A>
84<!-- ========= END OF TOP NAVBAR ========= -->
85
86<HR>
87<!-- ======== START OF CLASS DATA ======== -->
88<H2>
89<FONT SIZE="-1">
90org.ahmadsoft.ropes.impl</FONT>
91<BR>
92Class RepeatedCharacterSequence</H2>
93<PRE>
94java.lang.Object
95  <IMG SRC="/resources/inherit.gif" ALT="extended by "><B>org.ahmadsoft.ropes.impl.RepeatedCharacterSequence</B>
96</PRE>
97<DL>
98<DT><B>All Implemented Interfaces:</B> <DD>java.lang.CharSequence</DD>
99</DL>
100<HR>
101<DL>
102<DT><PRE>public class <B>RepeatedCharacterSequence</B><DT>extends java.lang.Object<DT>implements java.lang.CharSequence</DL>
103</PRE>
104
105<P>
106A character sequence defined by a character
107 and a repeat count.
108<P>
109
110<P>
111<DL>
112<DT><B>Author:</B></DT>
113  <DD>Amin Ahmad</DD>
114</DL>
115<HR>
116
117<P>
118
119<!-- ======== CONSTRUCTOR SUMMARY ======== -->
120
121<A NAME="constructor_summary"><!-- --></A>
122<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
123<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
124<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
125<B>Constructor Summary</B></FONT></TH>
126</TR>
127<TR BGCOLOR="white" CLASS="TableRowColor">
128<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html#RepeatedCharacterSequence(char, int)">RepeatedCharacterSequence</A></B>(char&nbsp;character,
129                          int&nbsp;repeat)</CODE>
130
131<BR>
132&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
133</TR>
134</TABLE>
135&nbsp;
136<!-- ========== METHOD SUMMARY =========== -->
137
138<A NAME="method_summary"><!-- --></A>
139<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
142<B>Method Summary</B></FONT></TH>
143</TR>
144<TR BGCOLOR="white" CLASS="TableRowColor">
145<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146<CODE>&nbsp;char</CODE></FONT></TD>
147<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html#charAt(int)">charAt</A></B>(int&nbsp;index)</CODE>
148
149<BR>
150&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
151</TR>
152<TR BGCOLOR="white" CLASS="TableRowColor">
153<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154<CODE>&nbsp;char</CODE></FONT></TD>
155<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html#getCharacter()">getCharacter</A></B>()</CODE>
156
157<BR>
158&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the character used to construct this sequence.</TD>
159</TR>
160<TR BGCOLOR="white" CLASS="TableRowColor">
161<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162<CODE>&nbsp;int</CODE></FONT></TD>
163<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html#length()">length</A></B>()</CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
167</TR>
168<TR BGCOLOR="white" CLASS="TableRowColor">
169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170<CODE>&nbsp;java.lang.CharSequence</CODE></FONT></TD>
171<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html#subSequence(int, int)">subSequence</A></B>(int&nbsp;start,
172            int&nbsp;end)</CODE>
173
174<BR>
175&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
176</TR>
177<TR BGCOLOR="white" CLASS="TableRowColor">
178<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
180<TD><CODE><B><A HREF="/org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html#toString()">toString</A></B>()</CODE>
181
182<BR>
183&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
184</TR>
185</TABLE>
186&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
187<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
188<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
189<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
190</TR>
191<TR BGCOLOR="white" CLASS="TableRowColor">
192<TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
193</TR>
194</TABLE>
195&nbsp;
196<P>
197
198<!-- ========= CONSTRUCTOR DETAIL ======== -->
199
200<A NAME="constructor_detail"><!-- --></A>
201<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
202<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
203<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
204<B>Constructor Detail</B></FONT></TH>
205</TR>
206</TABLE>
207
208<A NAME="RepeatedCharacterSequence(char, int)"><!-- --></A><H3>
209RepeatedCharacterSequence</H3>
210<PRE>
211public <B>RepeatedCharacterSequence</B>(char&nbsp;character,
212                                 int&nbsp;repeat)</PRE>
213<DL>
214</DL>
215
216<!-- ============ METHOD DETAIL ========== -->
217
218<A NAME="method_detail"><!-- --></A>
219<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
220<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
221<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
222<B>Method Detail</B></FONT></TH>
223</TR>
224</TABLE>
225
226<A NAME="charAt(int)"><!-- --></A><H3>
227charAt</H3>
228<PRE>
229public char <B>charAt</B>(int&nbsp;index)</PRE>
230<DL>
231<DD><DL>
232<DT><B>Specified by:</B><DD><CODE>charAt</CODE> in interface <CODE>java.lang.CharSequence</CODE></DL>
233</DD>
234<DD><DL>
235</DL>
236</DD>
237</DL>
238<HR>
239
240<A NAME="length()"><!-- --></A><H3>
241length</H3>
242<PRE>
243public int <B>length</B>()</PRE>
244<DL>
245<DD><DL>
246<DT><B>Specified by:</B><DD><CODE>length</CODE> in interface <CODE>java.lang.CharSequence</CODE></DL>
247</DD>
248<DD><DL>
249</DL>
250</DD>
251</DL>
252<HR>
253
254<A NAME="subSequence(int, int)"><!-- --></A><H3>
255subSequence</H3>
256<PRE>
257public java.lang.CharSequence <B>subSequence</B>(int&nbsp;start,
258                                          int&nbsp;end)</PRE>
259<DL>
260<DD><DL>
261<DT><B>Specified by:</B><DD><CODE>subSequence</CODE> in interface <CODE>java.lang.CharSequence</CODE></DL>
262</DD>
263<DD><DL>
264</DL>
265</DD>
266</DL>
267<HR>
268
269<A NAME="toString()"><!-- --></A><H3>
270toString</H3>
271<PRE>
272public java.lang.String <B>toString</B>()</PRE>
273<DL>
274<DD><DL>
275<DT><B>Specified by:</B><DD><CODE>toString</CODE> in interface <CODE>java.lang.CharSequence</CODE><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
276</DD>
277<DD><DL>
278</DL>
279</DD>
280</DL>
281<HR>
282
283<A NAME="getCharacter()"><!-- --></A><H3>
284getCharacter</H3>
285<PRE>
286public char <B>getCharacter</B>()</PRE>
287<DL>
288<DD>Returns the character used to construct this sequence.
289<P>
290<DD><DL>
291</DL>
292</DD>
293<DD><DL>
294
295<DT><B>Returns:</B><DD>the character used to construct this sequence.</DL>
296</DD>
297</DL>
298<!-- ========= END OF CLASS DATA ========= -->
299<HR>
300
301
302<!-- ======= START OF BOTTOM NAVBAR ====== -->
303<A NAME="navbar_bottom"><!-- --></A>
304<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
305<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
306<TR>
307<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
308<A NAME="navbar_bottom_firstrow"><!-- --></A>
309<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
310  <TR ALIGN="center" VALIGN="top">
311  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
312  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
313  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
314  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
315  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
316  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
317  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="/help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
318  </TR>
319</TABLE>
320</TD>
321<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
322</EM>
323</TD>
324</TR>
325
326<TR>
327<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
328&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/FlatCharSequenceRope.html" title="class in org.ahmadsoft.ropes.impl"><B>PREV CLASS</B></A>&nbsp;
329&nbsp;<A HREF="/org/ahmadsoft/ropes/impl/ReverseRope.html" title="class in org.ahmadsoft.ropes.impl"><B>NEXT CLASS</B></A></FONT></TD>
330<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
331  <A HREF="/index.html?org/ahmadsoft/ropes/impl/RepeatedCharacterSequence.html" target="_top"><B>FRAMES</B></A>  &nbsp;
332&nbsp;<A HREF="RepeatedCharacterSequence.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
333&nbsp;<SCRIPT type="text/javascript">
334  <!--
335  if(window==top) {
336    document.writeln('<A HREF="/allclasses-noframe.html"><B>All Classes</B></A>');
337  }
338  //-->
339</SCRIPT>
340<NOSCRIPT>
341  <A HREF="/allclasses-noframe.html"><B>All Classes</B></A>
342</NOSCRIPT>
343
344
345</FONT></TD>
346</TR>
347<TR>
348<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
349  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
350<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
351DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
352</TR>
353</TABLE>
354<A NAME="skip-navbar_bottom"></A>
355<!-- ======== END OF BOTTOM NAVBAR ======= -->
356
357<HR>
358<i>Copyright &#169; 2008 Amin Ahmad. All Rights Reserved.</i>
359</BODY>
360</HTML>
361