Skip to content

Commit

Permalink
changed: BitVector64 setters type
Browse files Browse the repository at this point in the history
for simple building
  • Loading branch information
rejchev committed Nov 4, 2024
1 parent d1e179a commit 6dcfe0c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/ru/rejchev/steamid/containers/BitVector64.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ public long get(char offset, long mask) {

/**
* @param value some value to write in {@link BitVector64#data}
* @param offset power of unsigned right shift
* @param offset power of unsigned left shift
* @param mask bit mask (e.g. *Mask {@link SteamID} constants)
*
* @return this object
*/
public void set(long value, char offset, long mask) {
public BitVector64 set(long value, char offset, long mask) {
data = (data & ~(mask << offset)) | ((value & mask) << offset);
return this;
}

@Override
Expand All @@ -59,7 +62,7 @@ public int hashCode() {
}

/**
* @return {@link SteamID.BitVector64#data()}
* @return {@link BitVector64#data()}
*/
@Override
public String toString() {
Expand Down

0 comments on commit 6dcfe0c

Please sign in to comment.