Record Class StorageResult.NoneResult<T>
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.data.StorageResult.NoneResult<T>
- Type Parameters:
T
- The type of data involved in the operation.
- All Implemented Interfaces:
StorageResult<T>
- Enclosing interface:
- StorageResult<T>
Represents a storage operation that resulting in nothing occurring.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.historian.common.model.data.StorageResult
StorageResult.ExceptionResult<T>, StorageResult.FailureResult<T>, StorageResult.NoneResult<T>, StorageResult.PartialFailureResult<T>, StorageResult.SuccessResult<T>, StorageResult.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.error()
Returns an Optional containing the exception if one occurred during the storage operation.Returns the list of data that failed to be stored.final int
hashCode()
Returns a hash code value for this object.Returns the quality code associated with this storage result.Returns the list of successfully stored data.final String
toString()
Returns a string representation of this record class.type()
Returns the exact type that this storage result represents.
-
Constructor Details
-
NoneResult
public NoneResult()Creates an instance of aNoneResult
record class.
-
-
Method Details
-
qualityCode
Description copied from interface:StorageResult
Returns the quality code associated with this storage result.- Specified by:
qualityCode
in interfaceStorageResult<T>
- Returns:
- the
QualityCode
indicating the quality of the storage operation
-
successfulData
Description copied from interface:StorageResult
Returns the list of successfully stored data.- Specified by:
successfulData
in interfaceStorageResult<T>
- Returns:
- an unmodifiable
List
of successfully storedT
-
failedData
Description copied from interface:StorageResult
Returns the list of data that failed to be stored.- Specified by:
failedData
in interfaceStorageResult<T>
- Returns:
- an unmodifiable
List
ofT
that failed to be stored
-
error
Description copied from interface:StorageResult
Returns an Optional containing the exception if one occurred during the storage operation.- Specified by:
error
in interfaceStorageResult<T>
- Returns:
- an
Optional
ofException
, empty if no exception occurred
-
type
Description copied from interface:StorageResult
Returns the exact type that this storage result represents.- Specified by:
type
in interfaceStorageResult<T>
- Returns:
- the result
StorageResult.Type
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-