2022-11-29 16:25:52 +00:00
|
|
|
# SDM assigment 04
|
2022-12-06 14:35:18 +00:00
|
|
|
|
2022-11-29 16:25:52 +00:00
|
|
|
Classes come from [https://github.com/apache/commons-lang](https://github.com/apache/commons-lang)
|
|
|
|
revision `770e72d2f78361b14f3fe27caea41e5977d3c638`
|
2022-12-06 14:35:18 +00:00
|
|
|
|
2022-11-30 16:37:55 +00:00
|
|
|
## List of semantically different functions with contracts
|
|
|
|
|
2022-11-30 17:24:52 +00:00
|
|
|
- Class `math.IEEE754rUtils`:
|
|
|
|
- `static double min(double[])` and overloads
|
|
|
|
- `static double max(double[])` and overloads
|
|
|
|
- Class `math.Fraction`
|
|
|
|
- `static Fraction getFraction(int, int)` and `static Fraction getFraction(int, int, int)`
|
|
|
|
- `static Fraction getReducedFraction(int, int)`
|
2022-12-05 19:38:51 +00:00
|
|
|
- `public int getDenominator()`
|
|
|
|
- `public Fraction negate()`
|
|
|
|
- `public Fraction abs()`
|
|
|
|
- `public Fraction reduce()`
|
2022-11-30 16:37:55 +00:00
|
|
|
- Class `CharRange`
|
|
|
|
- `boolean contains(CharRange)`
|
|
|
|
- Class `util.FluentBitSet`
|
|
|
|
- `FluentBitSet and(FluentBitSet)` and overloads
|
|
|
|
- `FluentBitSet andNot(FluentBitSet)` and overloads
|
|
|
|
- `FluentBitSet or(FluentBitSet)` and overloads
|
|
|
|
- `FluentBitSet clear()` and overloads
|
|
|
|
- `boolean get(int)` and overloads
|
|
|
|
- `boolean isEmpty()`
|
|
|
|
- `FluentBitSet flip(int)` and overloads
|
2022-12-02 17:15:45 +00:00
|
|
|
- (TODO) `FluentBitSet xor(FluentBitSet)`==> done/ to review
|
|
|
|
- (TODO) `FluentBitSet set(int)` ==> done/ to review
|
2022-12-03 16:54:51 +00:00
|
|
|
- (TODO) `int nextSetBit(int)` and `int previousSetBit(int)` ==> done
|
|
|
|
- (TODO) `int nextClearBit(int)` and `int previousClearBit(int)` ==>done
|
2022-11-30 17:24:52 +00:00
|
|
|
|
2022-11-29 16:25:52 +00:00
|
|
|
## Run Tests
|
2022-12-06 14:35:18 +00:00
|
|
|
|
|
|
|
```
|
2022-11-29 16:25:52 +00:00
|
|
|
mvn clean test
|
|
|
|
```
|