Skip to content

Commit 854146c

Browse files
pre-release
1 parent c1e7f3e commit 854146c

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Modifiable Variables
2-
Modifiable variable allows one to set modifications to basic types after or before their values are actually determined. When their actual values are determined and one tries to access the value via getters the original value will be returned in a modified form accordingly.
2+
Modifiable variable allows one to set modifications to basic types after or before their values are actually determined. When their actual values are determined and one tries to access the value via getters, the original value will be returned in a modified form accordingly.
33

44
The best way to present the functionality of this concept is by means of a simple example:
55

@@ -15,20 +15,20 @@ In this example, we defined a new ModifiableInteger and set its value to 30. Nex
1515
You can use further modifications to an integer value, for example subtract, xor or shift.
1616

1717
# Modifiable variables in Java
18-
If you use a modifiable variable in your Java code, use the modification factories, e.g.:
18+
If you use a modifiable variable in your Java code, use the modification factories, for example:
1919
```java
2020
VariableModification<Integer> modifier = IntegerModificationFactory.explicitValue(7);
2121
VariableModification<BigInteger> modifier = BigIntegerModificationFactory.add(BigInteger.ONE);
22-
VariableModification<byte[]> modifier = ByteArrayModificationFactory.xor(modification1, 0);
23-
VariableModification<byte[]> modifier = ByteArrayModificationFactory.insert(modification1, 0);
22+
VariableModification<byte[]> modifier = ByteArrayModificationFactory.xor(modification, 0);
23+
VariableModification<byte[]> modifier = ByteArrayModificationFactory.insert(modification, 0);
2424
```
2525

2626
# Modifiable variables in XML
2727
Modifiable variables are serializable with JAXB into XML.
2828
```xml
2929
<SomeVariable>
3030
<integerAddModification>
31-
<summand>2000</summand>
31+
<summand>2000</summand>
3232
</integerAddModification>
3333
</SomeVariable>
3434

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55
<artifactId>ModifiableVariable</artifactId>
66
<version>2.0</version>
77
<packaging>jar</packaging>
8+
9+
<name>ModifiableVariable</name>
10+
<description>A Modifiable Variable concept allows for easy runtime modifications of basic data types like integers, booleans, or byte arrays</description>
11+
<url>https://github.com/RUB-NDS/ModifiableVariable</url>
12+
13+
<licenses>
14+
<license>
15+
<name>Apache License, Version 2.0</name>
16+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
17+
<distribution>repo</distribution>
18+
</license>
19+
</licenses>
20+
821
<developers>
922
<developer>
1023
<id>jsomorovsky</id>
@@ -30,6 +43,7 @@
3043
</roles>
3144
</developer>
3245
</developers>
46+
3347
<dependencies>
3448
<dependency>
3549
<groupId>junit</groupId>
@@ -48,6 +62,7 @@
4862
<version>2.8.2</version>
4963
</dependency>
5064
</dependencies>
65+
5166
<properties>
5267
<maven.compiler.source>1.7</maven.compiler.source>
5368
<maven.compiler.target>1.7</maven.compiler.target>

0 commit comments

Comments
 (0)