we do not use the final parameter code style in the rest of Lang, so bringing these two classes in line with the others

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137891 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2004-08-15 02:12:51 +00:00
parent 5fe0ddd20d
commit f2cb58abe6
2 changed files with 164 additions and 164 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ package org.apache.commons.lang;
* @author Pete Gieser
* @author Gary Gregory
* @since 2.0
* @version $Id: BitField.java,v 1.5 2004/02/18 22:59:50 ggregory Exp $
* @version $Id: BitField.java,v 1.6 2004/08/15 02:12:51 bayard Exp $
*/
public class BitField {
@ -40,7 +40,7 @@ public class BitField {
* BitField. Bits that are set in this mask are the bits
* that this BitField operates on
*/
public BitField(final int mask) {
public BitField(int mask) {
_mask = mask;
int count = 0;
int bit_pattern = mask;
@ -68,7 +68,7 @@ public class BitField {
* in
* @return the selected bits, shifted right appropriately
*/
public int getValue(final int holder) {
public int getValue(int holder) {
return getRawValue(holder) >> _shift_count;
}
@ -86,7 +86,7 @@ public class BitField {
* interested in
* @return the selected bits, shifted right appropriately
*/
public short getShortValue(final short holder) {
public short getShortValue(short holder) {
return (short) getValue(holder);
}
@ -97,7 +97,7 @@ public class BitField {
* interested in
* @return the selected bits
*/
public int getRawValue(final int holder) {
public int getRawValue(int holder) {
return (holder & _mask);
}
@ -108,7 +108,7 @@ public class BitField {
* interested in
* @return the selected bits
*/
public short getShortRawValue(final short holder) {
public short getShortRawValue(short holder) {
return (short) getRawValue(holder);
}
@ -125,7 +125,7 @@ public class BitField {
* @return <code>true</code> if any of the bits are set,
* else <code>false</code>
*/
public boolean isSet(final int holder) {
public boolean isSet(int holder) {
return (holder & _mask) != 0;
}
@ -141,7 +141,7 @@ public class BitField {
* @return <code>true</code> if all of the bits are set,
* else <code>false</code>
*/
public boolean isAllSet(final int holder) {
public boolean isAllSet(int holder) {
return (holder & _mask) == _mask;
}
@ -155,7 +155,7 @@ public class BitField {
* @return the value of holder with the bits from the value
* parameter replacing the old bits
*/
public int setValue(final int holder, final int value) {
public int setValue(int holder, int value) {
return (holder & ~_mask) | ((value << _shift_count) & _mask);
}
@ -169,7 +169,7 @@ public class BitField {
* @return the value of holder with the bits from the value
* parameter replacing the old bits
*/
public short setShortValue(final short holder, final short value) {
public short setShortValue(short holder, short value) {
return (short) setValue(holder, value);
}
@ -181,7 +181,7 @@ public class BitField {
* @return the value of holder with the specified bits cleared
* (set to <code>0</code>)
*/
public int clear(final int holder) {
public int clear(int holder) {
return holder & ~_mask;
}
@ -193,7 +193,7 @@ public class BitField {
* @return the value of holder with the specified bits cleared
* (set to <code>0</code>)
*/
public short clearShort(final short holder) {
public short clearShort(short holder) {
return (short) clear(holder);
}
@ -206,7 +206,7 @@ public class BitField {
* @return the value of holder with the specified bits cleared
* (set to <code>0</code>)
*/
public byte clearByte(final byte holder) {
public byte clearByte(byte holder) {
return (byte) clear(holder);
}
@ -218,7 +218,7 @@ public class BitField {
* @return the value of holder with the specified bits set
* to <code>1</code>
*/
public int set(final int holder) {
public int set(int holder) {
return holder | _mask;
}
@ -230,7 +230,7 @@ public class BitField {
* @return the value of holder with the specified bits set
* to <code>1</code>
*/
public short setShort(final short holder) {
public short setShort(short holder) {
return (short) set(holder);
}
@ -243,7 +243,7 @@ public class BitField {
* @return the value of holder with the specified bits set
* to <code>1</code>
*/
public byte setByte(final byte holder) {
public byte setByte(byte holder) {
return (byte) set(holder);
}
@ -256,7 +256,7 @@ public class BitField {
* @return the value of holder with the specified bits set or
* cleared
*/
public int setBoolean(final int holder, final boolean flag) {
public int setBoolean(int holder, boolean flag) {
return flag ? set(holder) : clear(holder);
}
@ -269,7 +269,7 @@ public class BitField {
* @return the value of holder with the specified bits set or
* cleared
*/
public short setShortBoolean(final short holder, final boolean flag) {
public short setShortBoolean(short holder, boolean flag) {
return flag ? setShort(holder) : clearShort(holder);
}
@ -282,7 +282,7 @@ public class BitField {
* @return the value of holder with the specified bits set or
* cleared
*/
public byte setByteBoolean(final byte holder, final boolean flag) {
public byte setByteBoolean(byte holder, boolean flag) {
return flag ? setByte(holder) : clearByte(holder);
}