Skip to content
Permalink
Browse files
formatting
  • Loading branch information
elecharny committed May 19, 2021
1 parent cebabb0 commit b866fc2b9091397767e82285a7d826c63d3cac90
Showing 1 changed file with 2 additions and 6 deletions.
@@ -26,23 +26,20 @@ There are two ways to create a value:

You can create the value passing it an *AttributeType*, or without it. Here are the possible constructors:

<CENTER>
| With an AttributeType | Without an attributeType | Description |
|---|---|---|
|:-:|:-:|:-:|
| Value( AttributeType, byte[] upValue ) | Value( byte[] upValue ) | Creates a Value with a binary content |
| Value( AttributeType, String upValue ) | Value( String upValue ) | Creates a Value with a String content |
| Value( AttributeType, Value ) | - | Create a new Value from an existing one, applying the SchemaManager on it |
</CENTER>

The third constructor is quite specific, as _Value_ is immutable, and it allows you to associate a SchemaManager to a _Value_ instance (creating a new _Value_ in the process). The new _Value_ instance will be schema aware.

## Operations on a Value

There are ways to consult the content of the _Value_, and its status. Here is the list of common operations:

<CENTER>
| Operation | Description |
|---|---|
|:-:|:-:|
| clone() | Clone the current Value, creating a new instance |
| compareTo( byte[] ) | Compare the content of the current value to the given byte[] |
| compareTo( String ) | Compare the content of the current value to the given String |
@@ -64,6 +61,5 @@ There are ways to consult the content of the _Value_, and its status. Here is th
| toString() | Returns a String representation of the Value instance |
| writeExternal( ObjectOutput ) | Write the Value into a stream |
|
</CENTER>


0 comments on commit b866fc2

Please sign in to comment.