File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/main/java/de/rub/nds/modifiablevariable/util Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 14
14
import de .rub .nds .modifiablevariable .mlong .ModifiableLong ;
15
15
import de .rub .nds .modifiablevariable .singlebyte .ByteModificationFactory ;
16
16
import de .rub .nds .modifiablevariable .singlebyte .ModifiableByte ;
17
+ import de .rub .nds .modifiablevariable .string .ModifiableString ;
18
+ import de .rub .nds .modifiablevariable .string .StringModificationFactory ;
17
19
18
20
import java .math .BigInteger ;
19
21
@@ -57,6 +59,12 @@ private static ModifiableBoolean getModifiableBooleanWithModification(VariableMo
57
59
return modifiableBoolean ;
58
60
}
59
61
62
+ private static ModifiableString getModifiableStringWithModification (VariableModification <String > modification ) {
63
+ ModifiableString modifiableString = new ModifiableString ();
64
+ modifiableString .setModification (modification );
65
+ return modifiableString ;
66
+ }
67
+
60
68
public static ModifiableByteArray explicit (byte [] b ) {
61
69
return getModifiableByteArrayWithModification (ByteArrayModificationFactory .explicitValue (b ));
62
70
}
@@ -169,4 +177,8 @@ public static ModifiableInteger shiftRight(Integer i) {
169
177
return getModifiableIntegerWithModification (IntegerModificationFactory .shiftRight (i ));
170
178
}
171
179
180
+ public static ModifiableString explicit (String s ) {
181
+ return getModifiableStringWithModification (StringModificationFactory .explicitValue (s ));
182
+ }
183
+
172
184
}
You can’t perform that action at this time.
0 commit comments