Updated readability of the code.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / gui / textEditorComponent / Character.java
index 0756d1c..27113b0 100644 (file)
@@ -1,25 +1,24 @@
 /*
- * Sixth - System for data storage, computation, exploration and interaction.
- * Copyright ©2012-2016, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
+ * Sixth 3D engine. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
  */
-
 package eu.svjatoslav.sixth.e3d.gui.textEditorComponent;
 
+/**
+ * A character in a text editor.
+ */
 public class Character {
 
+    /**
+     * The character value.
+     */
     char value;
 
-    // TODO: background and foreground colors
-
     public Character(final char value) {
         this.value = value;
     }
 
-    boolean isEmpty() {
-        return value == ' ';
+    boolean hasValue() {
+        return value != ' ';
     }
 }