You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2002/12/19 00:28:20 UTC

cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/util BitField.java

scolebourne    2002/12/18 15:28:20

  Modified:    lang/src/java/org/apache/commons/lang/util BitField.java
  Log:
  Remove unneeded whitespace that might cause javadoc problems
  
  Revision  Changes    Path
  1.2       +2 -19     jakarta-commons/lang/src/java/org/apache/commons/lang/util/BitField.java
  
  Index: BitField.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/util/BitField.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BitField.java	18 Dec 2002 02:50:36 -0000	1.1
  +++ BitField.java	18 Dec 2002 23:28:19 -0000	1.2
  @@ -65,6 +65,7 @@
    * @version $Id$
    */
   public class BitField {
  +    
       private final int _mask;
       private final int _shift_count;
   
  @@ -75,7 +76,6 @@
        *             BitField. Bits that are set in this mask are the
        *             bits that this BitField operates on
        */
  -
       public BitField(final int mask) {
           _mask = mask;
           int count = 0;
  @@ -102,7 +102,6 @@
        *
        * @return the selected bits, shifted right appropriately
        */
  -
       public int getValue(final int holder) {
           return getRawValue(holder) >> _shift_count;
       }
  @@ -119,7 +118,6 @@
        *
        * @return the selected bits, shifted right appropriately
        */
  -
       public short getShortValue(final short holder) {
           return (short) getValue(holder);
       }
  @@ -132,7 +130,6 @@
        *
        * @return the selected bits
        */
  -
       public int getRawValue(final int holder) {
           return (holder & _mask);
       }
  @@ -145,7 +142,6 @@
        *
        * @return the selected bits
        */
  -
       public short getShortRawValue(final short holder) {
           return (short) getRawValue(holder);
       }
  @@ -161,7 +157,6 @@
        *
        * @return true if any of the bits are set, else false
        */
  -
       public boolean isSet(final int holder) {
           return (holder & _mask) != 0;
       }
  @@ -176,7 +171,6 @@
        *
        * @return true if all of the bits are set, else false
        */
  -
       public boolean isAllSet(final int holder) {
           return (holder & _mask) == _mask;
       }
  @@ -191,7 +185,6 @@
        * @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) {
           return (holder & ~_mask) | ((value << _shift_count) & _mask);
       }
  @@ -206,7 +199,6 @@
        * @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) {
           return (short) setValue(holder, value);
       }
  @@ -220,7 +212,6 @@
        * @return the value of holder with the specified bits cleared
        *         (set to 0)
        */
  -
       public int clear(final int holder) {
           return holder & ~_mask;
       }
  @@ -234,7 +225,6 @@
        * @return the value of holder with the specified bits cleared
        *         (set to 0)
        */
  -
       public short clearShort(final short holder) {
           return (short) clear(holder);
       }
  @@ -248,7 +238,6 @@
        * @return the value of holder with the specified bits cleared
        *         (set to 0)
        */
  -
       public byte clearByte(final byte holder) {
           return (byte) clear(holder);
       }
  @@ -261,7 +250,6 @@
        *
        * @return the value of holder with the specified bits set to 1
        */
  -
       public int set(final int holder) {
           return holder | _mask;
       }
  @@ -274,7 +262,6 @@
        *
        * @return the value of holder with the specified bits set to 1
        */
  -
       public short setShort(final short holder) {
           return (short) set(holder);
       }
  @@ -287,7 +274,6 @@
        *
        * @return the value of holder with the specified bits set to 1
        */
  -
       public byte setByte(final byte holder) {
           return (byte) set(holder);
       }
  @@ -302,7 +288,6 @@
        * @return the value of holder with the specified bits set or
        *         cleared
        */
  -
       public int setBoolean(final int holder, final boolean flag) {
           return flag ? set(holder) : clear(holder);
       }
  @@ -317,7 +302,6 @@
        * @return the value of holder with the specified bits set or
        *         cleared
        */
  -
       public short setShortBoolean(final short holder, final boolean flag) {
           return flag ? setShort(holder) : clearShort(holder);
       }
  @@ -332,7 +316,6 @@
        * @return the value of holder with the specified bits set or
        *         cleared
        */
  -
       public byte setByteBoolean(final byte holder, final boolean flag) {
           return flag ? setByte(holder) : clearByte(holder);
       }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>