-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganization of the storage values
- Loading branch information
Showing
88 changed files
with
887 additions
and
582 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/BooleanValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/ByteValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/CharValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
Copyright 2024 Fausto Spoto | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package io.hotmoka.beans.api.values; | ||
|
||
import io.hotmoka.annotations.Immutable; | ||
|
||
/** | ||
* A {@code char} value stored in blockchain. | ||
*/ | ||
@Immutable | ||
public interface CharValue extends StorageValue { | ||
|
||
/** | ||
* Yields the character inside this value. | ||
* | ||
* @return the character | ||
*/ | ||
char getValue(); | ||
} |
33 changes: 33 additions & 0 deletions
33
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/DoubleValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
Copyright 2024 Fausto Spoto | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package io.hotmoka.beans.api.values; | ||
|
||
import io.hotmoka.annotations.Immutable; | ||
|
||
/** | ||
* A {@code double} value stored in blockchain. | ||
*/ | ||
@Immutable | ||
public interface DoubleValue extends StorageValue { | ||
|
||
/** | ||
* Yields the double inside this object. | ||
* | ||
* @return the double | ||
*/ | ||
double getValue(); | ||
} |
33 changes: 33 additions & 0 deletions
33
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/FloatValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
Copyright 2024 Fausto Spoto | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package io.hotmoka.beans.api.values; | ||
|
||
import io.hotmoka.annotations.Immutable; | ||
|
||
/** | ||
* A {@code float} value stored in blockchain. | ||
*/ | ||
@Immutable | ||
public interface FloatValue extends StorageValue { | ||
|
||
/** | ||
* Yields the float inside this value. | ||
* | ||
* @return the float | ||
*/ | ||
float getValue(); | ||
} |
33 changes: 33 additions & 0 deletions
33
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/IntValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
Copyright 2021 Fausto Spoto | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package io.hotmoka.beans.api.values; | ||
|
||
import io.hotmoka.annotations.Immutable; | ||
|
||
/** | ||
* An {@code int} value stored in the store of a node. | ||
*/ | ||
@Immutable | ||
public interface IntValue extends StorageValue { | ||
|
||
/** | ||
* Yields the {@code int} inside this value. | ||
* | ||
* @return the {@code int} | ||
*/ | ||
int getValue(); | ||
} |
33 changes: 33 additions & 0 deletions
33
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/LongValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
Copyright 2024 Fausto Spoto | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package io.hotmoka.beans.api.values; | ||
|
||
import io.hotmoka.annotations.Immutable; | ||
|
||
/** | ||
* A {@code long} value stored in blockchain. | ||
*/ | ||
@Immutable | ||
public interface LongValue extends StorageValue { | ||
|
||
/** | ||
* Yields the long inside this value. | ||
* | ||
* @return the long | ||
*/ | ||
long getValue(); | ||
} |
26 changes: 26 additions & 0 deletions
26
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/NullValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
Copyright 2021 Fausto Spoto | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package io.hotmoka.beans.api.values; | ||
|
||
import io.hotmoka.annotations.Immutable; | ||
|
||
/** | ||
* The {@code null} value stored in blockchain. | ||
*/ | ||
@Immutable | ||
public interface NullValue extends StorageValue { | ||
} |
33 changes: 33 additions & 0 deletions
33
io-hotmoka-beans-api/src/main/java/io/hotmoka/beans/api/values/ShortValue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
Copyright 2024 Fausto Spoto | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package io.hotmoka.beans.api.values; | ||
|
||
import io.hotmoka.annotations.Immutable; | ||
|
||
/** | ||
* A {@code short} value stored in blockchain. | ||
*/ | ||
@Immutable | ||
public interface ShortValue extends StorageValue { | ||
|
||
/** | ||
* Yields the short inside this value. | ||
* | ||
* @return the short | ||
*/ | ||
short getValue(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.