/*
- * Sixth 3D engine. Copyright ©2012-2017, 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;
import java.util.ArrayList;
return 0;
for (int i = 0; i < chars.size(); i++)
- if (!chars.get(i).isEmpty())
+ if (chars.get(i).hasValue())
return i;
throw new RuntimeException("This code shall never execute");
int newLength = 0;
for (int i = chars.size() - 1; i >= 0; i--)
- if (!chars.get(i).isEmpty()) {
+ if (chars.get(i).hasValue()) {
newLength = i + 1;
break;
}