• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CyclopsMC / IntegratedDynamics / 22186773560

19 Feb 2026 02:52PM UTC coverage: 52.603% (+0.2%) from 52.363%
22186773560

push

github

web-flow
Remove Lombok dependency (#1604)

2911 of 8664 branches covered (33.6%)

Branch coverage included in aggregate %.

17683 of 30486 relevant lines covered (58.0%)

3.01 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/src/main/java/org/cyclops/integrateddynamics/core/evaluate/variable/ValueBase.java
1
package org.cyclops.integrateddynamics.core.evaluate.variable;
2

3
import org.cyclops.integrateddynamics.api.evaluate.variable.IValue;
4
import org.cyclops.integrateddynamics.api.evaluate.variable.IValueCastRegistry;
5
import org.cyclops.integrateddynamics.api.evaluate.variable.IValueType;
6

7
/**
8
 * Base implementation of a variable.
9
 * @author rubensworks
10
 */
11
public abstract class ValueBase implements IValue {
12

13
    private final IValueType type;
14

15
    protected ValueBase(IValueType type) {
2✔
16
        this.type = type;
3✔
17
    }
1✔
18

19
    @Override
20
    public IValueType getType() {
21
        return type;
3✔
22
    }
23

24
    protected IValueCastRegistry getValueCastRegistry() {
25
        return ValueCastMappings.REGISTRY;
2✔
26
    }
27

28
    @SuppressWarnings("unchecked")
29
    @Override
30
    public <V extends IValue> V cast(IValueType<V> valueType) throws IValueCastRegistry.ValueCastException {
31
        if(valueType == getType()) {
4✔
32
            return (V) this;
2✔
33
        } else {
34
            return getValueCastRegistry().cast(valueType, this);
6✔
35
        }
36
    }
37

38
    @Override
39
    public <V extends IValue> boolean canCast(IValueType<V> valueType) {
40
        return getValueCastRegistry().canCast(valueType, this);
×
41
    }
42

43
    @Override
44
    public String toString() {
45
        return "ValueBase(type=" + this.type + ")";
×
46
    }
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc