@@ -231,7 +231,7 @@ public NilValue asNilValue() {
231231 }
232232
233233 @ Override
234- public ImmutableNilValue toImmutable () {
234+ public ImmutableNilValue immutableValue () {
235235 return ValueFactory .nil ();
236236 }
237237
@@ -270,7 +270,7 @@ public BooleanValue asBooleanValue() {
270270 }
271271
272272 @ Override
273- public ImmutableBooleanValue toImmutable () {
273+ public ImmutableBooleanValue immutableValue () {
274274 return ValueFactory .newBoolean (getBoolean ());
275275 }
276276
@@ -413,7 +413,7 @@ public IntegerValue asIntegerValue() {
413413 }
414414
415415 @ Override
416- public ImmutableIntegerValue toImmutable () {
416+ public ImmutableIntegerValue immutableValue () {
417417 if (type == Type .BIG_INTEGER ) {
418418 return ValueFactory .newInteger ((BigInteger ) objectValue );
419419 }
@@ -535,7 +535,7 @@ public FloatValue asFloatValue() {
535535 }
536536
537537 @ Override
538- public ImmutableFloatValue toImmutable () {
538+ public ImmutableFloatValue immutableValue () {
539539 return ValueFactory .newFloat (doubleValue );
540540 }
541541
@@ -628,7 +628,7 @@ public BinaryValue asBinaryValue() {
628628 }
629629
630630 @ Override
631- public ImmutableBinaryValue toImmutable () {
631+ public ImmutableBinaryValue immutableValue () {
632632 return ValueFactory .newBinary (getByteArray ());
633633 }
634634
@@ -673,7 +673,7 @@ public StringValue asStringValue() {
673673 }
674674
675675 @ Override
676- public ImmutableStringValue toImmutable () {
676+ public ImmutableStringValue immutableValue () {
677677 return ValueFactory .newString ((byte []) objectValue );
678678 }
679679
@@ -714,7 +714,7 @@ public ArrayValue asArrayValue() {
714714 }
715715
716716 @ Override
717- public ImmutableArrayValue toImmutable () {
717+ public ImmutableArrayValue immutableValue () {
718718 return ValueFactory .newArray (list ());
719719 }
720720
@@ -786,7 +786,7 @@ public MapValue asMapValue() {
786786 }
787787
788788 @ Override
789- public ImmutableMapValue toImmutable () {
789+ public ImmutableMapValue immutableValue () {
790790 return ValueFactory .newMap (map ());
791791 }
792792
@@ -870,7 +870,7 @@ public ExtensionValue asExtensionValue() {
870870 }
871871
872872 @ Override
873- public ImmutableExtensionValue toImmutable () {
873+ public ImmutableExtensionValue immutableValue () {
874874 return (ImmutableExtensionValue ) objectValue ;
875875 }
876876
@@ -901,8 +901,8 @@ public void accept(ValueVisitor visitor) {
901901 //
902902
903903 @ Override
904- public ImmutableValue toImmutable () {
905- return accessor .toImmutable ();
904+ public ImmutableValue immutableValue () {
905+ return accessor .immutableValue ();
906906 }
907907
908908 @ Override
@@ -917,17 +917,17 @@ public void accept(ValueVisitor visitor) {
917917
918918 @ Override
919919 public int hashCode () {
920- return toImmutable ().hashCode (); // TODO optimize
920+ return immutableValue ().hashCode (); // TODO optimize
921921 }
922922
923923 @ Override
924924 public boolean equals (Object o ) {
925- return toImmutable ().equals (o ); // TODO optimize
925+ return immutableValue ().equals (o ); // TODO optimize
926926 }
927927
928928 @ Override
929929 public String toString () {
930- return toImmutable ().toString (); // TODO optimize
930+ return immutableValue ().toString (); // TODO optimize
931931 }
932932
933933 @ Override
0 commit comments