2323import java .util .Map ;
2424
2525public final class ValueFactory {
26- public static NilValue nilValue () {
26+ public static NilValue createNilValue () {
2727 return NilValue .getInstance ();
2828 }
2929
30- public static BooleanValue booleanValue (boolean v ) {
30+ public static BooleanValue createBooleanValue (boolean v ) {
3131 if (v ) {
3232 return TrueValueImpl .getInstance ();
3333 } else {
3434 return FalseValueImpl .getInstance ();
3535 }
3636 }
3737
38- public static IntegerValue integerValue (byte v ) {
38+ public static IntegerValue createIntegerValue (byte v ) {
3939 return new IntValueImpl ((int )v );
4040 }
4141
42- public static IntegerValue integerValue (short v ) {
42+ public static IntegerValue createIntegerValue (short v ) {
4343 return new IntValueImpl ((int )v );
4444 }
4545
46- public static IntegerValue integerValue (int v ) {
46+ public static IntegerValue createIntegerValue (int v ) {
4747 return new IntValueImpl (v );
4848 }
4949
50- public static IntegerValue integerValue (long v ) {
50+ public static IntegerValue createIntegerValue (long v ) {
5151 return new LongValueImpl (v );
5252 }
5353
54- public static IntegerValue integerValue (BigInteger v ) {
54+ public static IntegerValue createIntegerValue (BigInteger v ) {
5555 return new BigIntegerValueImpl (v );
5656 }
5757
58- public static FloatValue floatValue (float v ) {
58+ public static FloatValue createFloatValue (float v ) {
5959 return new FloatValueImpl (v );
6060 }
6161
62- public static FloatValue floatValue (double v ) {
62+ public static FloatValue createFloatValue (double v ) {
6363 return new DoubleValueImpl (v );
6464 }
6565
66- public static RawValue rawValue () {
66+ public static RawValue createRawValue () {
6767 return ByteArrayRawValueImpl .getEmptyInstance ();
6868 }
6969
70- public static RawValue rawValue (byte [] b ) {
71- return rawValue (b , false );
70+ public static RawValue createRawValue (byte [] b ) {
71+ return createRawValue (b , false );
7272 }
7373
74- public static RawValue rawValue (byte [] b , boolean gift ) {
74+ public static RawValue createRawValue (byte [] b , boolean gift ) {
7575 return new ByteArrayRawValueImpl (b , gift );
7676 }
7777
78- public static RawValue rawValue (byte [] b , int off , int len ) {
78+ public static RawValue createRawValue (byte [] b , int off , int len ) {
7979 return new ByteArrayRawValueImpl (b , off , len );
8080 }
8181
82- public static RawValue rawValue (String s ) {
82+ public static RawValue createRawValue (String s ) {
8383 return new StringRawValueImpl (s );
8484 }
8585
86- public static RawValue rawValue (ByteBuffer bb ) {
86+ public static RawValue createRawValue (ByteBuffer bb ) {
8787 int pos = bb .position ();
8888 try {
8989 byte [] buf = new byte [bb .remaining ()];
@@ -94,39 +94,39 @@ public static RawValue rawValue(ByteBuffer bb) {
9494 }
9595 }
9696
97- public static ArrayValue arrayValue () {
97+ public static ArrayValue createArrayValue () {
9898 return ArrayValueImpl .getEmptyInstance ();
9999 }
100100
101- public static ArrayValue arrayValue (Value [] array ) {
101+ public static ArrayValue createArrayValue (Value [] array ) {
102102 if (array .length == 0 ) {
103103 // TODO EmptyArrayValueImpl?
104104 return ArrayValueImpl .getEmptyInstance ();
105105 }
106- return arrayValue (array , false );
106+ return createArrayValue (array , false );
107107 }
108108
109- public static ArrayValue arrayValue (Value [] array , boolean gift ) {
109+ public static ArrayValue createArrayValue (Value [] array , boolean gift ) {
110110 if (array .length == 0 ) {
111111 // TODO EmptyArrayValueImpl?
112112 return ArrayValueImpl .getEmptyInstance ();
113113 }
114114 return new ArrayValueImpl (array , gift );
115115 }
116116
117- public static MapValue mapValue () {
117+ public static MapValue createMapValue () {
118118 return SequentialMapValueImpl .getEmptyInstance ();
119119 }
120120
121- public static MapValue mapValue (Value [] kvs ) {
121+ public static MapValue createMapValue (Value [] kvs ) {
122122 if (kvs .length == 0 ) {
123123 // TODO EmptyMapValueImpl?
124124 return SequentialMapValueImpl .getEmptyInstance ();
125125 }
126- return mapValue (kvs , false );
126+ return createMapValue (kvs , false );
127127 }
128128
129- public static MapValue mapValue (Value [] kvs , boolean gift ) {
129+ public static MapValue createMapValue (Value [] kvs , boolean gift ) {
130130 if (kvs .length == 0 ) {
131131 // TODO EmptyMapValueImpl?
132132 return SequentialMapValueImpl .getEmptyInstance ();
0 commit comments