* Interface for accessing key information attached to an object.
*/
public interface KeyAccess {
- /**
- * Retrieve the key mapping.
- *
- * @return The key mapping currently attached.
- * @throws IOException when the retrieve operation fails.
- */
- @Nonnull KeyMapping getKeys() throws IOException;
+ /**
+ * Retrieve the key mapping.
+ *
+ * @return The key mapping currently attached.
+ * @throws IOException when the retrieve operation fails.
+ */
+ @Nonnull
+ KeyMapping getKeys() throws IOException;
- /**
- * Attach key mappings.
- *
- * @param keys Mappings which should
- * @throws IOException when the set operation fails.
- * @throws IllegalArgumentException if a key length is zero or it exceeds
- * platform-supported length (usually 80 bytes).
- */
- void setKeys(@Nonnull KeyMapping keys) throws IOException;
+ /**
+ * Attach key mappings.
+ *
+ * @param keys Mappings which should
+ * @throws IOException when the set operation fails.
+ * @throws IllegalArgumentException if a key length is zero or it exceeds platform-supported length (usually 80
+ * bytes).
+ */
+ void setKeys(@Nonnull KeyMapping keys) throws IOException;
}