Skip to content

Commit 12cb94f

Browse files
ctruedengab1one
authored andcommitted
DataHandle: relocate the isLittleEndian() method
It belongs immediately before the (to be renamed) setOrder(boolean).
1 parent 783ee18 commit 12cb94f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/org/scijava/io/DataHandle.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,18 @@ default boolean ensureWritable(final long count) throws IOException {
128128
/** Returns the byte order of the stream. */
129129
ByteOrder getOrder();
130130

131-
/** Gets the endianness of the stream. */
132-
default boolean isLittleEndian() {
133-
return getOrder() == ByteOrder.LITTLE_ENDIAN;
134-
}
135-
136131
/**
137132
* Sets the byte order of the stream.
138133
*
139134
* @param order Order to set.
140135
*/
141136
void setOrder(ByteOrder order);
142137

138+
/** Gets the endianness of the stream. */
139+
default boolean isLittleEndian() {
140+
return getOrder() == ByteOrder.LITTLE_ENDIAN;
141+
}
142+
143143
/** Sets the endianness of the stream. */
144144
default void setOrder(final boolean little) {
145145
setOrder(little ? ByteOrder.LITTLE_ENDIAN : ByteOrder.BIG_ENDIAN);

0 commit comments

Comments
 (0)