Skip to content

Commit 90f2d41

Browse files
committed
DataHandle: relocate the isLittleEndian() method
It belongs immediately before the (to be renamed) setOrder(boolean).
1 parent 9dabafa commit 90f2d41

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

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

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

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

0 commit comments

Comments
 (0)