Made the no-argument constructors of the VS* suite of Java classes public.

This commit is contained in:
Derek Bankieris 2015-03-16 12:51:27 -05:00
parent d41e7cb937
commit ab337c20a8
9 changed files with 10 additions and 9 deletions

View File

@ -2,7 +2,7 @@ package trick.common.utils.vs;
public class VSBoolean extends VSValue<Boolean> { public class VSBoolean extends VSValue<Boolean> {
protected VSBoolean() { public VSBoolean() {
this(false); this(false);
} }

View File

@ -4,7 +4,7 @@ import java.math.BigInteger;
public class VSByte extends VSValue<Byte> { public class VSByte extends VSValue<Byte> {
protected VSByte() { public VSByte() {
this((byte)0); this((byte)0);
} }

View File

@ -2,7 +2,7 @@ package trick.common.utils.vs;
public class VSDouble extends VSValue<Double> { public class VSDouble extends VSValue<Double> {
protected VSDouble() { public VSDouble() {
this(0); this(0);
} }

View File

@ -2,7 +2,7 @@ package trick.common.utils.vs;
public class VSFloat extends VSValue<Float> { public class VSFloat extends VSValue<Float> {
protected VSFloat() { public VSFloat() {
this(0); this(0);
} }

View File

@ -4,7 +4,7 @@ import java.math.BigInteger;
public class VSInteger extends VSValue<Integer> { public class VSInteger extends VSValue<Integer> {
protected VSInteger() { public VSInteger() {
this(0); this(0);
} }

View File

@ -4,7 +4,7 @@ import java.math.BigInteger;
public class VSLong extends VSValue<Long> { public class VSLong extends VSValue<Long> {
protected VSLong() { public VSLong() {
this(0); this(0);
} }

View File

@ -4,7 +4,7 @@ import java.math.BigInteger;
public class VSShort extends VSValue<Short> { public class VSShort extends VSValue<Short> {
protected VSShort() { public VSShort() {
this((short)0); this((short)0);
} }

View File

@ -2,7 +2,7 @@ package trick.common.utils.vs;
public class VSString extends VSValue<String> { public class VSString extends VSValue<String> {
protected VSString() {} public VSString() {}
public VSString(String value) { public VSString(String value) {
super(value); super(value);

View File

@ -30,7 +30,8 @@ public abstract class VSValue<T> implements VariableServerFluent, Cloneable {
@Override @Override
public String toString() { public String toString() {
return value.toString(); // This method works even when value is null.
return String.valueOf(value);
} }
@Override @Override