diff options
Diffstat (limited to 'java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java')
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java b/java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java index ad02979..67c2463 100644 --- a/java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java +++ b/java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java @@ -46,7 +46,7 @@ public class H5FD_ros3_fapl_t implements Serializable { private static final long serialVersionUID = 8985533001471224030L; /** Version number of the H5FD_ros3_fapl_t structure */ - private int version; + private int version; /** Flag TRUE or FALSE whether or not requests are to be authenticated with the AWS4 algorithm. */ private boolean authenticate; /** region "aws region" for authenticating request */ @@ -59,11 +59,12 @@ public class H5FD_ros3_fapl_t implements Serializable { /** * Create a "default" fapl_t structure, for anonymous access. */ - public H5FD_ros3_fapl_t () { + public H5FD_ros3_fapl_t() + { /* H5FD_ros3_fapl_t("", "", ""); */ /* defer */ - this.version = 1; + this.version = 1; this.aws_region = ""; - this.secret_id = ""; + this.secret_id = ""; this.secret_key = ""; } @@ -76,16 +77,18 @@ public class H5FD_ros3_fapl_t implements Serializable { * @param id "secret id" or "access id" for authenticating request * @param key "secret key" or "access key" for authenticating request */ - public H5FD_ros3_fapl_t (String region, String id, String key) { - this.version = 1; /* must equal H5FD_CURR_ROS3_FAPL_T_VERSION */ - /* as found in H5FDros3.h */ + public H5FD_ros3_fapl_t(String region, String id, String key) + { + this.version = 1; /* must equal H5FD_CURR_ROS3_FAPL_T_VERSION */ + /* as found in H5FDros3.h */ this.aws_region = region; this.secret_id = id; this.secret_key = key; } @Override - public boolean equals(Object o) { + public boolean equals(Object o) + { if (o == null) return false; if (!(o instanceof H5FD_ros3_fapl_t)) @@ -104,7 +107,8 @@ public class H5FD_ros3_fapl_t implements Serializable { } @Override - public int hashCode() { + public int hashCode() + { /* this is a _very bad_ hash algorithm for purposes of hashing! */ /* implemented to satisfy the "contract" regarding equality */ int k = (int)this.version; @@ -115,13 +119,10 @@ public class H5FD_ros3_fapl_t implements Serializable { } @Override - public String toString() { - return "H5FD_ros3_fapl_t (Version:" + this.version + ") {" + - "\n aws_region : " + this.aws_region + - "\n secret_id : " + this.secret_id + - "\n secret_key : " + this.secret_key + - "\n}\n"; + public String toString() + { + return "H5FD_ros3_fapl_t (Version:" + this.version + ") {" + + "\n aws_region : " + this.aws_region + "\n secret_id : " + this.secret_id + + "\n secret_key : " + this.secret_key + "\n}\n"; } } - - |