1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.4.2_16) on Sat Mar 15 20:43:47 PDT 2008 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
8 BitField (Commons Lang
2.4 API)
11 <META NAME=
"keywords" CONTENT=
"org.apache.commons.lang.BitField class">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"BitField (Commons Lang 2.4 API)";
24 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
27 <!-- ========= START OF TOP NAVBAR ======= -->
28 <A NAME=
"navbar_top"><!-- --></A>
29 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
30 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
32 <TD COLSPAN=
3 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
33 <A NAME=
"navbar_top_firstrow"><!-- --></A>
34 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
35 <TR ALIGN=
"center" VALIGN=
"top">
36 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
37 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
38 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/BitField.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
47 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
53 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
54 <A HREF=
"../../../../org/apache/commons/lang/ArrayUtils.html" title=
"class in org.apache.commons.lang"><B>PREV CLASS
</B></A>
55 <A HREF=
"../../../../org/apache/commons/lang/BooleanUtils.html" title=
"class in org.apache.commons.lang"><B>NEXT CLASS
</B></A></FONT></TD>
56 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
57 <A HREF=
"../../../../index.html" target=
"_top"><B>FRAMES
</B></A>
58 <A HREF=
"BitField.html" target=
"_top"><B>NO FRAMES
</B></A>
59 <SCRIPT type=
"text/javascript">
62 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
73 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
74 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
75 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
76 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
79 <A NAME=
"skip-navbar_top"></A>
80 <!-- ========= END OF TOP NAVBAR ========= -->
83 <!-- ======== START OF CLASS DATA ======== -->
86 org.apache.commons.lang
</FONT>
91 <IMG SRC=
"../../../../resources/inherit.gif" ALT=
"extended by"><B>org.apache.commons.lang.BitField
</B>
95 <DT>public class
<B>BitField
</B><DT>extends java.lang.Object
</DL>
98 <p>Operations on bit-mapped fields.
</p>
103 <DT><B>Since:
</B></DT>
105 <DT><B>Version:
</B></DT>
106 <DD>$Id: BitField.java
437554 2006-
08-
28 06:
21:
41Z bayard $
</DD>
107 <DT><B>Author:
</B></DT>
108 <DD>Apache Jakarta POI, Scott Sanders (sanders at apache dot org), Marc Johnson (mjohnson at apache dot org), Andrew C. Oliver (acoliver at apache dot org), Stephen Colebourne, Pete Gieser, Gary Gregory
</DD>
113 <!-- ======== NESTED CLASS SUMMARY ======== -->
116 <!-- =========== FIELD SUMMARY =========== -->
119 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
121 <A NAME=
"constructor_summary"><!-- --></A>
122 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
123 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
124 <TD COLSPAN=
2><FONT SIZE=
"+2">
125 <B>Constructor Summary
</B></FONT></TD>
127 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
128 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#BitField(int)">BitField
</A></B>(int
mask)
</CODE>
131 Creates a BitField instance.
</TD>
135 <!-- ========== METHOD SUMMARY =========== -->
137 <A NAME=
"method_summary"><!-- --></A>
138 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
139 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
140 <TD COLSPAN=
2><FONT SIZE=
"+2">
141 <B>Method Summary
</B></FONT></TD>
143 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
144 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
145 <CODE> int
</CODE></FONT></TD>
146 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#clear(int)">clear
</A></B>(int
holder)
</CODE>
149 Clears the bits.
</TD>
151 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
152 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
153 <CODE> byte
</CODE></FONT></TD>
154 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#clearByte(byte)">clearByte
</A></B>(byte
holder)
</CODE>
157 Clears the bits.
</TD>
159 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
160 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
161 <CODE> short
</CODE></FONT></TD>
162 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#clearShort(short)">clearShort
</A></B>(short
holder)
</CODE>
165 Clears the bits.
</TD>
167 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
168 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
169 <CODE> int
</CODE></FONT></TD>
170 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#getRawValue(int)">getRawValue
</A></B>(int
holder)
</CODE>
173 Obtains the value for the specified BitField, unshifted.
</TD>
175 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
176 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
177 <CODE> short
</CODE></FONT></TD>
178 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#getShortRawValue(short)">getShortRawValue
</A></B>(short
holder)
</CODE>
181 Obtains the value for the specified BitField, unshifted.
</TD>
183 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
184 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
185 <CODE> short
</CODE></FONT></TD>
186 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#getShortValue(short)">getShortValue
</A></B>(short
holder)
</CODE>
189 Obtains the value for the specified BitField, appropriately
190 shifted right, as a short.
</TD>
192 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
193 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
194 <CODE> int
</CODE></FONT></TD>
195 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#getValue(int)">getValue
</A></B>(int
holder)
</CODE>
198 Obtains the value for the specified BitField, appropriately
201 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
202 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
203 <CODE> boolean
</CODE></FONT></TD>
204 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#isAllSet(int)">isAllSet
</A></B>(int
holder)
</CODE>
207 Returns whether all of the bits are set or not.
</TD>
209 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
210 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
211 <CODE> boolean
</CODE></FONT></TD>
212 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#isSet(int)">isSet
</A></B>(int
holder)
</CODE>
215 Returns whether the field is set or not.
</TD>
217 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
218 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
219 <CODE> int
</CODE></FONT></TD>
220 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#set(int)">set
</A></B>(int
holder)
</CODE>
223 Sets the bits.
</TD>
225 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
226 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
227 <CODE> int
</CODE></FONT></TD>
228 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setBoolean(int, boolean)">setBoolean
</A></B>(int
holder,
229 boolean
flag)
</CODE>
232 Sets a boolean BitField.
</TD>
234 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
235 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
236 <CODE> byte
</CODE></FONT></TD>
237 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setByte(byte)">setByte
</A></B>(byte
holder)
</CODE>
240 Sets the bits.
</TD>
242 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
243 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
244 <CODE> byte
</CODE></FONT></TD>
245 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setByteBoolean(byte, boolean)">setByteBoolean
</A></B>(byte
holder,
246 boolean
flag)
</CODE>
249 Sets a boolean BitField.
</TD>
251 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
252 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
253 <CODE> short
</CODE></FONT></TD>
254 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setShort(short)">setShort
</A></B>(short
holder)
</CODE>
257 Sets the bits.
</TD>
259 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
260 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
261 <CODE> short
</CODE></FONT></TD>
262 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setShortBoolean(short, boolean)">setShortBoolean
</A></B>(short
holder,
263 boolean
flag)
</CODE>
266 Sets a boolean BitField.
</TD>
268 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
269 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
270 <CODE> short
</CODE></FONT></TD>
271 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setShortValue(short, short)">setShortValue
</A></B>(short
holder,
272 short
value)
</CODE>
275 Replaces the bits with new values.
</TD>
277 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
278 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
279 <CODE> int
</CODE></FONT></TD>
280 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setValue(int, int)">setValue
</A></B>(int
holder,
281 int
value)
</CODE>
284 Replaces the bits with new values.
</TD>
287 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
288 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
289 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
290 <TD><B>Methods inherited from class java.lang.Object
</B></TD>
292 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
293 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
299 <!-- ============ FIELD DETAIL =========== -->
302 <!-- ========= CONSTRUCTOR DETAIL ======== -->
304 <A NAME=
"constructor_detail"><!-- --></A>
305 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
306 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
307 <TD COLSPAN=
1><FONT SIZE=
"+2">
308 <B>Constructor Detail
</B></FONT></TD>
312 <A NAME=
"BitField(int)"><!-- --></A><H3>
315 public
<B>BitField
</B>(int
mask)
</PRE>
317 <DD><p>Creates a BitField instance.
</p>
319 <DT><B>Parameters:
</B><DD><CODE>mask
</CODE> - the mask specifying which bits apply to this
320 BitField. Bits that are set in this mask are the bits
321 that this BitField operates on
</DL>
323 <!-- ============ METHOD DETAIL ========== -->
325 <A NAME=
"method_detail"><!-- --></A>
326 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
327 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
328 <TD COLSPAN=
1><FONT SIZE=
"+2">
329 <B>Method Detail
</B></FONT></TD>
333 <A NAME=
"getValue(int)"><!-- --></A><H3>
336 public int
<B>getValue
</B>(int
holder)
</PRE>
338 <DD><p>Obtains the value for the specified BitField, appropriately
341 <p>Many users of a BitField will want to treat the specified
342 bits as an int value, and will not want to be aware that the
343 value is stored as a BitField (and so shifted left so many
347 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the int data containing the bits we're interested
349 <DT><B>Returns:
</B><DD>the selected bits, shifted right appropriately
<DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setValue(int, int)"><CODE>setValue(int,int)
</CODE></A></DL>
354 <A NAME=
"getShortValue(short)"><!-- --></A><H3>
357 public short
<B>getShortValue
</B>(short
holder)
</PRE>
359 <DD><p>Obtains the value for the specified BitField, appropriately
360 shifted right, as a short.
</p>
362 <p>Many users of a BitField will want to treat the specified
363 bits as an int value, and will not want to be aware that the
364 value is stored as a BitField (and so shifted left so many
368 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the short data containing the bits we're
370 <DT><B>Returns:
</B><DD>the selected bits, shifted right appropriately
<DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/lang/BitField.html#setShortValue(short, short)"><CODE>setShortValue(short,short)
</CODE></A></DL>
375 <A NAME=
"getRawValue(int)"><!-- --></A><H3>
378 public int
<B>getRawValue
</B>(int
holder)
</PRE>
380 <DD><p>Obtains the value for the specified BitField, unshifted.
</p>
383 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the int data containing the bits we're
385 <DT><B>Returns:
</B><DD>the selected bits
</DL>
390 <A NAME=
"getShortRawValue(short)"><!-- --></A><H3>
391 getShortRawValue
</H3>
393 public short
<B>getShortRawValue
</B>(short
holder)
</PRE>
395 <DD><p>Obtains the value for the specified BitField, unshifted.
</p>
398 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the short data containing the bits we're
400 <DT><B>Returns:
</B><DD>the selected bits
</DL>
405 <A NAME=
"isSet(int)"><!-- --></A><H3>
408 public boolean
<B>isSet
</B>(int
holder)
</PRE>
410 <DD><p>Returns whether the field is set or not.
</p>
412 <p>This is most commonly used for a single-bit field, which is
413 often used to represent a boolean value; the results of using
414 it for a multi-bit field is to determine whether *any* of its
418 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the int data containing the bits we're interested
420 <DT><B>Returns:
</B><DD><code>true
</code> if any of the bits are set,
421 else
<code>false
</code></DL>
426 <A NAME=
"isAllSet(int)"><!-- --></A><H3>
429 public boolean
<B>isAllSet
</B>(int
holder)
</PRE>
431 <DD><p>Returns whether all of the bits are set or not.
</p>
433 <p>This is a stricter test than
<A HREF=
"../../../../org/apache/commons/lang/BitField.html#isSet(int)"><CODE>isSet(int)
</CODE></A>,
434 in that all of the bits in a multi-bit set must be set
435 for this method to return
<code>true
</code>.
</p>
438 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the int data containing the bits we're
440 <DT><B>Returns:
</B><DD><code>true
</code> if all of the bits are set,
441 else
<code>false
</code></DL>
446 <A NAME=
"setValue(int, int)"><!-- --></A><H3>
449 public int
<B>setValue
</B>(int
holder,
450 int
value)
</PRE>
452 <DD><p>Replaces the bits with new values.
</p>
455 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the int data containing the bits we're
456 interested in
<DD><CODE>value
</CODE> - the new value for the specified bits
457 <DT><B>Returns:
</B><DD>the value of holder with the bits from the value
458 parameter replacing the old bits
<DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/lang/BitField.html#getValue(int)"><CODE>getValue(int)
</CODE></A></DL>
463 <A NAME=
"setShortValue(short, short)"><!-- --></A><H3>
466 public short
<B>setShortValue
</B>(short
holder,
467 short
value)
</PRE>
469 <DD><p>Replaces the bits with new values.
</p>
472 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the short data containing the bits we're
473 interested in
<DD><CODE>value
</CODE> - the new value for the specified bits
474 <DT><B>Returns:
</B><DD>the value of holder with the bits from the value
475 parameter replacing the old bits
<DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/lang/BitField.html#getShortValue(short)"><CODE>getShortValue(short)
</CODE></A></DL>
480 <A NAME=
"clear(int)"><!-- --></A><H3>
483 public int
<B>clear
</B>(int
holder)
</PRE>
485 <DD><p>Clears the bits.
</p>
488 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the int data containing the bits we're
490 <DT><B>Returns:
</B><DD>the value of holder with the specified bits cleared
491 (set to
<code>0</code>)
</DL>
496 <A NAME=
"clearShort(short)"><!-- --></A><H3>
499 public short
<B>clearShort
</B>(short
holder)
</PRE>
501 <DD><p>Clears the bits.
</p>
504 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the short data containing the bits we're
506 <DT><B>Returns:
</B><DD>the value of holder with the specified bits cleared
507 (set to
<code>0</code>)
</DL>
512 <A NAME=
"clearByte(byte)"><!-- --></A><H3>
515 public byte
<B>clearByte
</B>(byte
holder)
</PRE>
517 <DD><p>Clears the bits.
</p>
520 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the byte data containing the bits we're
522 <DT><B>Returns:
</B><DD>the value of holder with the specified bits cleared
523 (set to
<code>0</code>)
</DL>
528 <A NAME=
"set(int)"><!-- --></A><H3>
531 public int
<B>set
</B>(int
holder)
</PRE>
533 <DD><p>Sets the bits.
</p>
536 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the int data containing the bits we're
538 <DT><B>Returns:
</B><DD>the value of holder with the specified bits set
539 to
<code>1</code></DL>
544 <A NAME=
"setShort(short)"><!-- --></A><H3>
547 public short
<B>setShort
</B>(short
holder)
</PRE>
549 <DD><p>Sets the bits.
</p>
552 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the short data containing the bits we're
554 <DT><B>Returns:
</B><DD>the value of holder with the specified bits set
555 to
<code>1</code></DL>
560 <A NAME=
"setByte(byte)"><!-- --></A><H3>
563 public byte
<B>setByte
</B>(byte
holder)
</PRE>
565 <DD><p>Sets the bits.
</p>
568 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the byte data containing the bits we're
570 <DT><B>Returns:
</B><DD>the value of holder with the specified bits set
571 to
<code>1</code></DL>
576 <A NAME=
"setBoolean(int, boolean)"><!-- --></A><H3>
579 public int
<B>setBoolean
</B>(int
holder,
580 boolean
flag)
</PRE>
582 <DD><p>Sets a boolean BitField.
</p>
585 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the int data containing the bits we're
586 interested in
<DD><CODE>flag
</CODE> - indicating whether to set or clear the bits
587 <DT><B>Returns:
</B><DD>the value of holder with the specified bits set or
593 <A NAME=
"setShortBoolean(short, boolean)"><!-- --></A><H3>
596 public short
<B>setShortBoolean
</B>(short
holder,
597 boolean
flag)
</PRE>
599 <DD><p>Sets a boolean BitField.
</p>
602 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the short data containing the bits we're
603 interested in
<DD><CODE>flag
</CODE> - indicating whether to set or clear the bits
604 <DT><B>Returns:
</B><DD>the value of holder with the specified bits set or
610 <A NAME=
"setByteBoolean(byte, boolean)"><!-- --></A><H3>
613 public byte
<B>setByteBoolean
</B>(byte
holder,
614 boolean
flag)
</PRE>
616 <DD><p>Sets a boolean BitField.
</p>
619 <DT><B>Parameters:
</B><DD><CODE>holder
</CODE> - the byte data containing the bits we're
620 interested in
<DD><CODE>flag
</CODE> - indicating whether to set or clear the bits
621 <DT><B>Returns:
</B><DD>the value of holder with the specified bits set or
625 <!-- ========= END OF CLASS DATA ========= -->
629 <!-- ======= START OF BOTTOM NAVBAR ====== -->
630 <A NAME=
"navbar_bottom"><!-- --></A>
631 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
632 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
634 <TD COLSPAN=
3 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
635 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
636 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
637 <TR ALIGN=
"center" VALIGN=
"top">
638 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
639 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
640 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
641 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/BitField.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
642 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
643 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
644 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
645 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
649 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
655 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
656 <A HREF=
"../../../../org/apache/commons/lang/ArrayUtils.html" title=
"class in org.apache.commons.lang"><B>PREV CLASS
</B></A>
657 <A HREF=
"../../../../org/apache/commons/lang/BooleanUtils.html" title=
"class in org.apache.commons.lang"><B>NEXT CLASS
</B></A></FONT></TD>
658 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
659 <A HREF=
"../../../../index.html" target=
"_top"><B>FRAMES
</B></A>
660 <A HREF=
"BitField.html" target=
"_top"><B>NO FRAMES
</B></A>
661 <SCRIPT type=
"text/javascript">
664 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
669 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
675 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
676 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
677 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
678 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
681 <A NAME=
"skip-navbar_bottom"></A>
682 <!-- ======== END OF BOTTOM NAVBAR ======= -->
685 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.