-
HDF Metadata-Based Constructors
- Include constructors that accept HDF-specific metadata (e.g., size, type, null-termination) to construct objects from data read directly from an HDF file.
-
Default HDF-Compliant Constructors
- Provide constructors that default missing parameters to HDF-specified default values, simplifying the creation process when full metadata is not required.
-
Application Value-Based Constructors
- Implement constructors that take application-level values (e.g.,
String
,int
,BigDecimal
) and convert them to HDF-compliant internal representations while setting the appropriate metadata.
- Implement constructors that take application-level values (e.g.,
-
Getters for HDF Byte Arrays
- Ensure methods exist to retrieve the HDF-compliant
byte[]
representation of the value, with support for specifying additional metadata like desired endianess.
- Ensure methods exist to retrieve the HDF-compliant
-
Application-Friendly Value Getters
- Provide methods to access the value in a format suitable for application use (e.g.,
String
,BigInteger
,float
,double
).
- Provide methods to access the value in a format suitable for application use (e.g.,
-
Validation of Inputs
- Perform internal validation to ensure inputs comply with HDF constraints (e.g., bit length, type compatibility, metadata correctness).
- Throw meaningful exceptions for invalid or incompatible inputs.
-
Immutability
- Ensure the immutability of data type objects by making fields
final
and using defensive copying for mutable inputs likebyte[]
.
- Ensure the immutability of data type objects by making fields
-
String Representation
- Override
toString()
to provide a clear, human-readable representation of the value, metadata, and internal state.
- Override
-
HDF Specification Compliance
- Implement internal handling and features that adhere to HDF specifications, ensuring compatibility with storage and retrieval requirements for all HDF data types.
-
Testing and Compatibility
- Develop comprehensive unit tests for all constructors and methods to validate functionality against HDF specifications and typical application scenarios.
-
Notifications
You must be signed in to change notification settings - Fork 0
karlnicholas/HdfJavaLib
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
HdfJavaLib
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published