projects
/
ldk-java
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use LC_ALL instead of LANG to correct zip file ordering
[ldk-java]
/
src
/
main
/
java
/
org
/
ldk
/
util
/
UInt5.java
1
package org.ldk.util;
2
3
/**
4
* A 5-bit unsigned integer
5
*/
6
public class UInt5 {
7
byte val;
8
public UInt5(byte val) {
9
if (val > 32 || val < 0) {
10
throw new IllegalArgumentException();
11
}
12
this.val = val;
13
}
14
15
/**
16
* @return the value represented
17
*/
18
public byte getVal() {
19
return val;
20
}
21
}