diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-04-19 18:08:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 18:08:09 (GMT) |
commit | 03c3a5469542688a52d5a20242d2334408f8ba33 (patch) | |
tree | 46e30ea4aa99b68279fe80c9ad56b1a6bbfcfe7c /java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java | |
parent | 32ef796e470da3e4de364d8dc469b03f5f6fafdc (diff) | |
download | hdf5-03c3a5469542688a52d5a20242d2334408f8ba33.zip hdf5-03c3a5469542688a52d5a20242d2334408f8ba33.tar.gz hdf5-03c3a5469542688a52d5a20242d2334408f8ba33.tar.bz2 |
Develop clang format java (#1653)
Diffstat (limited to 'java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java')
-rw-r--r-- | java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java | 48 |
1 files changed, 21 insertions, 27 deletions
diff --git a/java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java b/java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java index 95a9254..181d681 100644 --- a/java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java +++ b/java/src/hdf/hdf5lib/structs/H5FD_hdfs_fapl_t.java @@ -26,17 +26,17 @@ public class H5FD_hdfs_fapl_t implements Serializable { private static final long serialVersionUID = 2072473407027648309L; /** Version number of the H5FD_hdfs_fapl_t structure. */ - private int version; + private int version; /** Name of "Name Node" to access as the HDFS server. */ private String namenode_name; /** Port number to use to connect with Name Node. */ - private int namenode_port; + private int namenode_port; /** Username to use when accessing file. */ private String user_name; /** Path to the location of the Kerberos authentication cache. */ private String kerberos_ticket_cache; /** Size (in bytes) of the file read stream buffer. */ - private int stream_buffer_size; + private int stream_buffer_size; /** * Create a fapl_t structure with the specified components. @@ -51,23 +51,20 @@ public class H5FD_hdfs_fapl_t implements Serializable { * @param stream_buffer_size * Size (in bytes) of the file read stream buffer. */ - public H5FD_hdfs_fapl_t( - String namenode_name, - int namenode_port, - String user_name, - String kerberos_ticket_cache, - int stream_buffer_size) + public H5FD_hdfs_fapl_t(String namenode_name, int namenode_port, String user_name, + String kerberos_ticket_cache, int stream_buffer_size) { - this.version = 1; - this.namenode_name = namenode_name; - this.namenode_port = namenode_port; - this.user_name = user_name; - this.kerberos_ticket_cache = kerberos_ticket_cache; - this.stream_buffer_size = stream_buffer_size; + this.version = 1; + this.namenode_name = namenode_name; + this.namenode_port = namenode_port; + this.user_name = user_name; + this.kerberos_ticket_cache = kerberos_ticket_cache; + this.stream_buffer_size = stream_buffer_size; } @Override - public boolean equals(Object o) { + public boolean equals(Object o) + { if (o == null) return false; if (!(o instanceof H5FD_hdfs_fapl_t)) @@ -90,7 +87,8 @@ public class H5FD_hdfs_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; @@ -103,15 +101,11 @@ public class H5FD_hdfs_fapl_t implements Serializable { } @Override - public String toString() { - return "H5FD_hdfs_fapl_t (Version: " + this.version + ") {" + - "\n namenode_name: '" + this.namenode_name + - "'\n namenode_port: " + this.namenode_port + - "\n user_name: '" + this.user_name + - "'\n kerberos_ticket_cache: '" + this.kerberos_ticket_cache + - "'\n stream_buffer_size: " + this.stream_buffer_size + - "\n}\n"; + public String toString() + { + return "H5FD_hdfs_fapl_t (Version: " + this.version + ") {" + + "\n namenode_name: '" + this.namenode_name + "'\n namenode_port: " + this.namenode_port + + "\n user_name: '" + this.user_name + "'\n kerberos_ticket_cache: '" + + this.kerberos_ticket_cache + "'\n stream_buffer_size: " + this.stream_buffer_size + "\n}\n"; } } - - |