Revert "fmt"

This reverts commit 18ecb0e35b.
v5stable
Ondřej Hruška 11 years ago
parent 18ecb0e35b
commit ca0cd329cf
  1. 1
      src/mightypork/rogue/App.java
  2. 1
      src/mightypork/rogue/AppAccess.java
  3. 1
      src/mightypork/rogue/AppAdapter.java
  4. 1
      src/mightypork/rogue/Config.java
  5. 1
      src/mightypork/rogue/Const.java
  6. 1
      src/mightypork/rogue/CrashHandler.java
  7. 1
      src/mightypork/rogue/Paths.java
  8. 1
      src/mightypork/rogue/bus/DelegatingBusClient.java
  9. 1
      src/mightypork/rogue/bus/SimpleBusClient.java
  10. 1
      src/mightypork/rogue/bus/UpdateReceiver.java
  11. 1
      src/mightypork/rogue/bus/events/KeyboardEvent.java
  12. 1
      src/mightypork/rogue/bus/events/MouseButtonEvent.java
  13. 1
      src/mightypork/rogue/bus/events/MouseMotionEvent.java
  14. 1
      src/mightypork/rogue/bus/events/ScreenChangeEvent.java
  15. 1
      src/mightypork/rogue/bus/events/UpdateEvent.java
  16. 1
      src/mightypork/rogue/display/DisplaySystem.java
  17. 1
      src/mightypork/rogue/display/Screen.java
  18. 1
      src/mightypork/rogue/display/ScreenTestAnimations.java
  19. 1
      src/mightypork/rogue/display/constraints/Bounding.java
  20. 1
      src/mightypork/rogue/display/constraints/Constraint.java
  21. 1
      src/mightypork/rogue/display/rendering/Renderable.java
  22. 1
      src/mightypork/rogue/display/rendering/ScreenLayer.java
  23. 1
      src/mightypork/rogue/fonts/Align.java
  24. 1
      src/mightypork/rogue/fonts/FontManager.java
  25. 1
      src/mightypork/rogue/fonts/Fonts.java
  26. 1
      src/mightypork/rogue/fonts/LoadedFont.java
  27. 1
      src/mightypork/rogue/input/InputSystem.java
  28. 1
      src/mightypork/rogue/input/KeyBinder.java
  29. 1
      src/mightypork/rogue/input/KeyBinding.java
  30. 1
      src/mightypork/rogue/input/KeyBindingPool.java
  31. 1
      src/mightypork/rogue/input/KeyStroke.java
  32. 1
      src/mightypork/rogue/sounds/AudioX.java
  33. 1
      src/mightypork/rogue/sounds/BaseAudioPlayer.java
  34. 1
      src/mightypork/rogue/sounds/EffectPlayer.java
  35. 1
      src/mightypork/rogue/sounds/JointVolume.java
  36. 1
      src/mightypork/rogue/sounds/LoopPlayer.java
  37. 1
      src/mightypork/rogue/sounds/NullAudio.java
  38. 1
      src/mightypork/rogue/sounds/SoundSystem.java
  39. 1
      src/mightypork/rogue/tasks/TaskTakeScreenshot.java
  40. 1
      src/mightypork/rogue/testing/TestConstraints.java
  41. 1
      src/mightypork/rogue/testing/TestMsgbus.java
  42. 1
      src/mightypork/rogue/textures/TextureManager.java
  43. 1
      src/mightypork/rogue/textures/Textures.java
  44. 1
      src/mightypork/rogue/textures/Tx.java
  45. 1
      src/mightypork/rogue/textures/TxQuad.java
  46. 1
      src/mightypork/rogue/util/RenderUtils.java
  47. 1
      src/mightypork/rogue/util/Utils.java
  48. 1
      src/mightypork/utils/files/FileTreeDiff.java
  49. 1
      src/mightypork/utils/files/FileUtils.java
  50. 1
      src/mightypork/utils/files/OsUtils.java
  51. 1
      src/mightypork/utils/files/PropertyManager.java
  52. 1
      src/mightypork/utils/files/SimpleConfig.java
  53. 1
      src/mightypork/utils/files/ZipBuilder.java
  54. 1
      src/mightypork/utils/files/ZipUtils.java
  55. 2
      src/mightypork/utils/files/ion/AbstractIonList.java
  56. 2
      src/mightypork/utils/files/ion/AbstractIonMap.java
  57. 1
      src/mightypork/utils/files/ion/Ion.java
  58. 1
      src/mightypork/utils/files/ion/IonException.java
  59. 1
      src/mightypork/utils/files/ion/IonList.java
  60. 1
      src/mightypork/utils/files/ion/IonMap.java
  61. 1
      src/mightypork/utils/files/ion/IonMarks.java
  62. 1
      src/mightypork/utils/files/ion/Ionizable.java
  63. 1
      src/mightypork/utils/files/ion/IonizableOptional.java
  64. 1
      src/mightypork/utils/files/ion/StreamUtils.java
  65. 1
      src/mightypork/utils/logging/Log.java
  66. 1
      src/mightypork/utils/logging/LogInstance.java
  67. 1
      src/mightypork/utils/logging/LogMonitor.java
  68. 1
      src/mightypork/utils/logging/LogToSysoutMonitor.java
  69. 1
      src/mightypork/utils/math/Calc.java
  70. 1
      src/mightypork/utils/math/Polar.java
  71. 1
      src/mightypork/utils/math/Range.java
  72. 1
      src/mightypork/utils/math/color/HSV.java
  73. 1
      src/mightypork/utils/math/color/RGB.java
  74. 1
      src/mightypork/utils/math/coord/Coord.java
  75. 1
      src/mightypork/utils/math/coord/CoordAnimated.java
  76. 1
      src/mightypork/utils/math/coord/Rect.java
  77. 1
      src/mightypork/utils/math/easing/Easing.java
  78. 1
      src/mightypork/utils/objects/Convertor.java
  79. 1
      src/mightypork/utils/objects/Mutable.java
  80. 2
      src/mightypork/utils/objects/ObjectUtils.java
  81. 1
      src/mightypork/utils/objects/Pair.java
  82. 1
      src/mightypork/utils/objects/Triad.java
  83. 4
      src/mightypork/utils/objects/VarargsParser.java
  84. 1
      src/mightypork/utils/patterns/Destroyable.java
  85. 1
      src/mightypork/utils/patterns/subscription/Handleable.java
  86. 1
      src/mightypork/utils/patterns/subscription/MessageBus.java
  87. 1
      src/mightypork/utils/patterns/subscription/MessageChannel.java
  88. 1
      src/mightypork/utils/patterns/subscription/clients/DelegatingClient.java
  89. 1
      src/mightypork/utils/patterns/subscription/clients/ToggleableClient.java
  90. 1
      src/mightypork/utils/string/StringUtils.java
  91. 1
      src/mightypork/utils/string/validation/CharValidator.java
  92. 1
      src/mightypork/utils/string/validation/CharValidatorRegex.java
  93. 1
      src/mightypork/utils/string/validation/CharValidatorWhitelist.java
  94. 1
      src/mightypork/utils/string/validation/FileSuffixFilter.java
  95. 1
      src/mightypork/utils/string/validation/FilenameCharValidator.java
  96. 1
      src/mightypork/utils/string/validation/StringFilter.java
  97. 1
      src/mightypork/utils/time/FpsMeter.java
  98. 1
      src/mightypork/utils/time/Pauseable.java
  99. 1
      src/mightypork/utils/time/TimerDelta.java
  100. 1
      src/mightypork/utils/time/TimerInterpolating.java
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,5 +1,6 @@
package mightypork.rogue; package mightypork.rogue;
import java.io.File; import java.io.File;
import java.io.RandomAccessFile; import java.io.RandomAccessFile;
import java.nio.channels.FileLock; import java.nio.channels.FileLock;

@ -1,5 +1,6 @@
package mightypork.rogue; package mightypork.rogue;
import mightypork.rogue.display.DisplaySystem; import mightypork.rogue.display.DisplaySystem;
import mightypork.rogue.input.InputSystem; import mightypork.rogue.input.InputSystem;
import mightypork.rogue.sounds.SoundSystem; import mightypork.rogue.sounds.SoundSystem;

@ -1,5 +1,6 @@
package mightypork.rogue; package mightypork.rogue;
import mightypork.rogue.display.DisplaySystem; import mightypork.rogue.display.DisplaySystem;
import mightypork.rogue.input.InputSystem; import mightypork.rogue.input.InputSystem;
import mightypork.rogue.sounds.SoundSystem; import mightypork.rogue.sounds.SoundSystem;

@ -1,5 +1,6 @@
package mightypork.rogue; package mightypork.rogue;
import mightypork.utils.files.PropertyManager; import mightypork.utils.files.PropertyManager;
import mightypork.utils.logging.Log; import mightypork.utils.logging.Log;

@ -1,5 +1,6 @@
package mightypork.rogue; package mightypork.rogue;
/** /**
* Application constants * Application constants
* *

@ -1,5 +1,6 @@
package mightypork.rogue; package mightypork.rogue;
import java.lang.Thread.UncaughtExceptionHandler; import java.lang.Thread.UncaughtExceptionHandler;

@ -1,5 +1,6 @@
package mightypork.rogue; package mightypork.rogue;
import java.io.File; import java.io.File;
import mightypork.utils.files.OsUtils; import mightypork.utils.files.OsUtils;

@ -1,5 +1,6 @@
package mightypork.rogue.bus; package mightypork.rogue.bus;
import java.util.Collection; import java.util.Collection;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;

@ -1,5 +1,6 @@
package mightypork.rogue.bus; package mightypork.rogue.bus;
import mightypork.rogue.AppAccess; import mightypork.rogue.AppAccess;
import mightypork.rogue.AppAdapter; import mightypork.rogue.AppAdapter;

@ -1,5 +1,6 @@
package mightypork.rogue.bus; package mightypork.rogue.bus;
import mightypork.rogue.AppAccess; import mightypork.rogue.AppAccess;
import mightypork.rogue.bus.events.UpdateEvent; import mightypork.rogue.bus.events.UpdateEvent;
import mightypork.utils.time.Updateable; import mightypork.utils.time.Updateable;

@ -1,5 +1,6 @@
package mightypork.rogue.bus.events; package mightypork.rogue.bus.events;
import mightypork.utils.patterns.subscription.Handleable; import mightypork.utils.patterns.subscription.Handleable;
import org.lwjgl.input.Keyboard; import org.lwjgl.input.Keyboard;

@ -1,5 +1,6 @@
package mightypork.rogue.bus.events; package mightypork.rogue.bus.events;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;
import mightypork.utils.patterns.subscription.Handleable; import mightypork.utils.patterns.subscription.Handleable;

@ -1,5 +1,6 @@
package mightypork.rogue.bus.events; package mightypork.rogue.bus.events;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;
import mightypork.utils.patterns.subscription.Handleable; import mightypork.utils.patterns.subscription.Handleable;

@ -1,5 +1,6 @@
package mightypork.rogue.bus.events; package mightypork.rogue.bus.events;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;
import mightypork.utils.patterns.subscription.Handleable; import mightypork.utils.patterns.subscription.Handleable;

@ -1,5 +1,6 @@
package mightypork.rogue.bus.events; package mightypork.rogue.bus.events;
import mightypork.utils.patterns.subscription.Handleable; import mightypork.utils.patterns.subscription.Handleable;

@ -1,5 +1,6 @@
package mightypork.rogue.display; package mightypork.rogue.display;
import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL11.*;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;

@ -1,5 +1,6 @@
package mightypork.rogue.display; package mightypork.rogue.display;
import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL11.*;
import mightypork.rogue.AppAccess; import mightypork.rogue.AppAccess;
import mightypork.rogue.bus.DelegatingBusClient; import mightypork.rogue.bus.DelegatingBusClient;

@ -1,5 +1,6 @@
package mightypork.rogue.display; package mightypork.rogue.display;
import java.util.Random; import java.util.Random;
import mightypork.rogue.AppAccess; import mightypork.rogue.AppAccess;

@ -1,5 +1,6 @@
package mightypork.rogue.display.constraints; package mightypork.rogue.display.constraints;
import mightypork.utils.math.coord.Rect; import mightypork.utils.math.coord.Rect;

@ -1,5 +1,6 @@
package mightypork.rogue.display.constraints; package mightypork.rogue.display.constraints;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;
import mightypork.utils.math.coord.Rect; import mightypork.utils.math.coord.Rect;

@ -1,5 +1,6 @@
package mightypork.rogue.display.rendering; package mightypork.rogue.display.rendering;
public interface Renderable { public interface Renderable {
public void render(); public void render();

@ -1,5 +1,6 @@
package mightypork.rogue.display.rendering; package mightypork.rogue.display.rendering;
import mightypork.rogue.AppAccess; import mightypork.rogue.AppAccess;
import mightypork.rogue.bus.DelegatingBusClient; import mightypork.rogue.bus.DelegatingBusClient;

@ -1,5 +1,6 @@
package mightypork.rogue.fonts; package mightypork.rogue.fonts;
/** /**
* Alignment * Alignment
* *

@ -1,5 +1,6 @@
package mightypork.rogue.fonts; package mightypork.rogue.fonts;
import java.awt.Font; import java.awt.Font;
import java.io.InputStream; import java.io.InputStream;
import java.util.HashMap; import java.util.HashMap;

@ -1,5 +1,6 @@
package mightypork.rogue.fonts; package mightypork.rogue.fonts;
import static mightypork.rogue.fonts.FontManager.Style.*; import static mightypork.rogue.fonts.FontManager.Style.*;
import mightypork.rogue.fonts.FontManager.Glyphs; import mightypork.rogue.fonts.FontManager.Glyphs;
import mightypork.utils.logging.Log; import mightypork.utils.logging.Log;

@ -1,5 +1,6 @@
package mightypork.rogue.fonts; package mightypork.rogue.fonts;
import static mightypork.rogue.fonts.Align.*; import static mightypork.rogue.fonts.Align.*;
import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL11.*;

@ -1,5 +1,6 @@
package mightypork.rogue.input; package mightypork.rogue.input;
import mightypork.rogue.AppAccess; import mightypork.rogue.AppAccess;
import mightypork.rogue.bus.DelegatingBusClient; import mightypork.rogue.bus.DelegatingBusClient;
import mightypork.rogue.bus.events.KeyboardEvent; import mightypork.rogue.bus.events.KeyboardEvent;

@ -1,5 +1,6 @@
package mightypork.rogue.input; package mightypork.rogue.input;
public interface KeyBinder { public interface KeyBinder {
/** /**

@ -1,5 +1,6 @@
package mightypork.rogue.input; package mightypork.rogue.input;
import mightypork.rogue.bus.events.KeyboardEvent; import mightypork.rogue.bus.events.KeyboardEvent;

@ -1,5 +1,6 @@
package mightypork.rogue.input; package mightypork.rogue.input;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.Set; import java.util.Set;

@ -1,5 +1,6 @@
package mightypork.rogue.input; package mightypork.rogue.input;
import java.util.Iterator; import java.util.Iterator;
import java.util.LinkedHashSet; import java.util.LinkedHashSet;
import java.util.Set; import java.util.Set;

@ -1,5 +1,6 @@
package mightypork.rogue.sounds; package mightypork.rogue.sounds;
import mightypork.utils.files.FileUtils; import mightypork.utils.files.FileUtils;
import mightypork.utils.logging.Log; import mightypork.utils.logging.Log;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;

@ -1,5 +1,6 @@
package mightypork.rogue.sounds; package mightypork.rogue.sounds;
import mightypork.utils.objects.Mutable; import mightypork.utils.objects.Mutable;

@ -1,5 +1,6 @@
package mightypork.rogue.sounds; package mightypork.rogue.sounds;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;
import mightypork.utils.objects.Mutable; import mightypork.utils.objects.Mutable;

@ -1,5 +1,6 @@
package mightypork.rogue.sounds; package mightypork.rogue.sounds;
import mightypork.utils.math.Calc; import mightypork.utils.math.Calc;
import mightypork.utils.objects.Mutable; import mightypork.utils.objects.Mutable;

@ -1,5 +1,6 @@
package mightypork.rogue.sounds; package mightypork.rogue.sounds;
import mightypork.utils.objects.Mutable; import mightypork.utils.objects.Mutable;
import mightypork.utils.time.Pauseable; import mightypork.utils.time.Pauseable;
import mightypork.utils.time.Updateable; import mightypork.utils.time.Updateable;

@ -1,5 +1,6 @@
package mightypork.rogue.sounds; package mightypork.rogue.sounds;
public class NullAudio extends AudioX { public class NullAudio extends AudioX {
public NullAudio() { public NullAudio() {

@ -1,5 +1,6 @@
package mightypork.rogue.sounds; package mightypork.rogue.sounds;
import java.nio.FloatBuffer; import java.nio.FloatBuffer;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;

@ -1,5 +1,6 @@
package mightypork.rogue.tasks; package mightypork.rogue.tasks;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;

@ -1,5 +1,6 @@
package mightypork.rogue.testing; package mightypork.rogue.testing;
import mightypork.rogue.display.constraints.Bounding; import mightypork.rogue.display.constraints.Bounding;
import mightypork.rogue.display.constraints.Constraint; import mightypork.rogue.display.constraints.Constraint;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;

@ -1,5 +1,6 @@
package mightypork.rogue.testing; package mightypork.rogue.testing;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;

@ -1,5 +1,6 @@
package mightypork.rogue.textures; package mightypork.rogue.textures;
import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL11.*;
import java.io.IOException; import java.io.IOException;

@ -1,5 +1,6 @@
package mightypork.rogue.textures; package mightypork.rogue.textures;
import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL11.*;
import org.newdawn.slick.opengl.Texture; import org.newdawn.slick.opengl.Texture;

@ -1,5 +1,6 @@
package mightypork.rogue.textures; package mightypork.rogue.textures;
// TODO rewrite // TODO rewrite
/** /**

@ -1,5 +1,6 @@
package mightypork.rogue.textures; package mightypork.rogue.textures;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;
import mightypork.utils.math.coord.Rect; import mightypork.utils.math.coord.Rect;

@ -1,5 +1,6 @@
package mightypork.rogue.util; package mightypork.rogue.util;
import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL11.*;
import mightypork.rogue.textures.TextureManager; import mightypork.rogue.textures.TextureManager;
import mightypork.rogue.textures.TxQuad; import mightypork.rogue.textures.TxQuad;

@ -1,5 +1,6 @@
package mightypork.rogue.util; package mightypork.rogue.util;
/** /**
* Utils class * Utils class
* *

@ -1,5 +1,6 @@
package mightypork.utils.files; package mightypork.utils.files;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;

@ -1,5 +1,6 @@
package mightypork.utils.files; package mightypork.utils.files;
import java.io.*; import java.io.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

@ -1,5 +1,6 @@
package mightypork.utils.files; package mightypork.utils.files;
import java.io.File; import java.io.File;

@ -1,5 +1,6 @@
package mightypork.utils.files; package mightypork.utils.files;
import java.io.*; import java.io.*;
import java.util.*; import java.util.*;
import java.util.Map.Entry; import java.util.Map.Entry;

@ -1,5 +1,6 @@
package mightypork.utils.files; package mightypork.utils.files;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;

@ -1,5 +1,6 @@
package mightypork.utils.files; package mightypork.utils.files;
import java.io.*; import java.io.*;
import java.util.HashSet; import java.util.HashSet;
import java.util.zip.ZipEntry; import java.util.zip.ZipEntry;

@ -1,5 +1,6 @@
package mightypork.utils.files; package mightypork.utils.files;
import java.io.BufferedInputStream; import java.io.BufferedInputStream;
import java.io.BufferedOutputStream; import java.io.BufferedOutputStream;
import java.io.File; import java.io.File;

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
@ -22,6 +23,7 @@ public abstract class AbstractIonList<T> extends ArrayList<T> implements Ionizab
byte b = StreamUtils.readByte(in); byte b = StreamUtils.readByte(in);
if (b == IonMarks.ENTRY) { if (b == IonMarks.ENTRY) {
@SuppressWarnings("unchecked")
T value = (T) Ion.readObject(in); T value = (T) Ion.readObject(in);
add(value); add(value);
} else if (b == IonMarks.END) { } else if (b == IonMarks.END) {

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
@ -37,6 +38,7 @@ public abstract class AbstractIonMap<V> extends LinkedHashMap<String, V> impleme
if (b == IonMarks.ENTRY) { if (b == IonMarks.ENTRY) {
String key = StreamUtils.readStringBytes(in); String key = StreamUtils.readStringBytes(in);
@SuppressWarnings("unchecked")
V value = (V) Ion.readObject(in); V value = (V) Ion.readObject(in);
put(key, value); put(key, value);

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
import java.io.*; import java.io.*;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
public class IonException extends Exception { public class IonException extends Exception {
public IonException() { public IonException() {

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
/** /**
* Ionizable Arraylist * Ionizable Arraylist
* *

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
/** /**
* Ionizable HashMap * Ionizable HashMap
* *

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
/** /**
* Byte marks used to structure data in Ion files. * Byte marks used to structure data in Ion files.
* *

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
/** /**
* Optional ionizable * Optional ionizable
* *

@ -1,5 +1,6 @@
package mightypork.utils.files.ion; package mightypork.utils.files.ion;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;

@ -1,5 +1,6 @@
package mightypork.utils.logging; package mightypork.utils.logging;
import java.io.File; import java.io.File;
import java.util.HashMap; import java.util.HashMap;

@ -1,5 +1,6 @@
package mightypork.utils.logging; package mightypork.utils.logging;
import java.io.File; import java.io.File;
import java.io.FileFilter; import java.io.FileFilter;
import java.io.PrintWriter; import java.io.PrintWriter;

@ -1,5 +1,6 @@
package mightypork.utils.logging; package mightypork.utils.logging;
import java.util.logging.Level; import java.util.logging.Level;

@ -1,5 +1,6 @@
package mightypork.utils.logging; package mightypork.utils.logging;
import java.util.logging.Level; import java.util.logging.Level;

@ -1,5 +1,6 @@
package mightypork.utils.math; package mightypork.utils.math;
import java.nio.FloatBuffer; import java.nio.FloatBuffer;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

@ -1,5 +1,6 @@
package mightypork.utils.math; package mightypork.utils.math;
import mightypork.utils.math.Calc.Deg; import mightypork.utils.math.Calc.Deg;
import mightypork.utils.math.Calc.Rad; import mightypork.utils.math.Calc.Rad;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;

@ -1,5 +1,6 @@
package mightypork.utils.math; package mightypork.utils.math;
import java.util.Random; import java.util.Random;

@ -1,5 +1,6 @@
package mightypork.utils.math.color; package mightypork.utils.math.color;
import java.awt.Color; import java.awt.Color;
import mightypork.utils.math.Calc; import mightypork.utils.math.Calc;

@ -1,5 +1,6 @@
package mightypork.utils.math.color; package mightypork.utils.math.color;
import java.awt.Color; import java.awt.Color;
import mightypork.utils.math.Calc; import mightypork.utils.math.Calc;

@ -1,5 +1,6 @@
package mightypork.utils.math.coord; package mightypork.utils.math.coord;
import java.util.Random; import java.util.Random;
import mightypork.utils.math.Calc; import mightypork.utils.math.Calc;

@ -1,5 +1,6 @@
package mightypork.utils.math.coord; package mightypork.utils.math.coord;
import mightypork.utils.math.Calc; import mightypork.utils.math.Calc;
import mightypork.utils.time.Updateable; import mightypork.utils.time.Updateable;

@ -1,5 +1,6 @@
package mightypork.utils.math.coord; package mightypork.utils.math.coord;
import mightypork.utils.math.Calc; import mightypork.utils.math.Calc;

@ -1,5 +1,6 @@
package mightypork.utils.math.easing; package mightypork.utils.math.easing;
/** /**
* EasingFunction function. * EasingFunction function.
* *

@ -1,5 +1,6 @@
package mightypork.utils.objects; package mightypork.utils.objects;
import mightypork.utils.logging.Log; import mightypork.utils.logging.Log;
import mightypork.utils.math.Range; import mightypork.utils.math.Range;
import mightypork.utils.math.coord.Coord; import mightypork.utils.math.coord.Coord;

@ -1,5 +1,6 @@
package mightypork.utils.objects; package mightypork.utils.objects;
/** /**
* Mutable object * Mutable object
* *

@ -1,5 +1,6 @@
package mightypork.utils.objects; package mightypork.utils.objects;
import java.util.*; import java.util.*;
import java.util.Map.Entry; import java.util.Map.Entry;
@ -63,6 +64,7 @@ public class ObjectUtils {
Collections.sort(entries, new Comparator<Map.Entry<K, V>>() { Collections.sort(entries, new Comparator<Map.Entry<K, V>>() {
@SuppressWarnings("unchecked")
@Override @Override
public int compare(Entry<K, V> o1, Entry<K, V> o2) public int compare(Entry<K, V> o1, Entry<K, V> o2)
{ {

@ -1,5 +1,6 @@
package mightypork.utils.objects; package mightypork.utils.objects;
import mightypork.utils.math.Calc; import mightypork.utils.math.Calc;

@ -1,5 +1,6 @@
package mightypork.utils.objects; package mightypork.utils.objects;
import mightypork.utils.math.Calc; import mightypork.utils.math.Calc;

@ -1,5 +1,6 @@
package mightypork.utils.objects; package mightypork.utils.objects;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
@ -21,9 +22,6 @@ import java.util.Map;
* *
* *
* *
*
*
*
* Object[] array = { &quot;one&quot;, 1, &quot;two&quot;, 4, &quot;three&quot;, 9, &quot;four&quot;, 16 }; * Object[] array = { &quot;one&quot;, 1, &quot;two&quot;, 4, &quot;three&quot;, 9, &quot;four&quot;, 16 };
* Map&lt;String, Integer&gt; args = new VarargsParser&lt;String, Integer&gt;().parse(array); * Map&lt;String, Integer&gt; args = new VarargsParser&lt;String, Integer&gt;().parse(array);
* </pre> * </pre>

@ -1,5 +1,6 @@
package mightypork.utils.patterns; package mightypork.utils.patterns;
/** /**
* Object that can be destroyed (free resources etc) * Object that can be destroyed (free resources etc)
* *

@ -1,5 +1,6 @@
package mightypork.utils.patterns.subscription; package mightypork.utils.patterns.subscription;
/** /**
* Something that can be handled by HANDLER. * Something that can be handled by HANDLER.
* *

@ -1,5 +1,6 @@
package mightypork.utils.patterns.subscription; package mightypork.utils.patterns.subscription;
import java.util.Collection; import java.util.Collection;
import java.util.LinkedHashSet; import java.util.LinkedHashSet;

@ -1,5 +1,6 @@
package mightypork.utils.patterns.subscription; package mightypork.utils.patterns.subscription;
import java.util.Collection; import java.util.Collection;
import java.util.HashSet; import java.util.HashSet;

@ -1,5 +1,6 @@
package mightypork.utils.patterns.subscription.clients; package mightypork.utils.patterns.subscription.clients;
import java.util.Collection; import java.util.Collection;

@ -1,5 +1,6 @@
package mightypork.utils.patterns.subscription.clients; package mightypork.utils.patterns.subscription.clients;
/** /**
* Client that can toggle receiving messages. * Client that can toggle receiving messages.
* *

@ -1,5 +1,6 @@
package mightypork.utils.string; package mightypork.utils.string;
/** /**
* General purpose string utilities * General purpose string utilities
* *

@ -1,5 +1,6 @@
package mightypork.utils.string.validation; package mightypork.utils.string.validation;
public interface CharValidator { public interface CharValidator {
public boolean isValid(char c); public boolean isValid(char c);

@ -1,5 +1,6 @@
package mightypork.utils.string.validation; package mightypork.utils.string.validation;
public class CharValidatorRegex implements CharValidator { public class CharValidatorRegex implements CharValidator {
private String formula; private String formula;

@ -1,5 +1,6 @@
package mightypork.utils.string.validation; package mightypork.utils.string.validation;
public class CharValidatorWhitelist implements CharValidator { public class CharValidatorWhitelist implements CharValidator {
private String whitelist; private String whitelist;

@ -1,5 +1,6 @@
package mightypork.utils.string.validation; package mightypork.utils.string.validation;
import java.io.File; import java.io.File;
import java.io.FileFilter; import java.io.FileFilter;

@ -1,5 +1,6 @@
package mightypork.utils.string.validation; package mightypork.utils.string.validation;
public class FilenameCharValidator extends CharValidatorRegex { public class FilenameCharValidator extends CharValidatorRegex {
public FilenameCharValidator() { public FilenameCharValidator() {

@ -1,5 +1,6 @@
package mightypork.utils.string.validation; package mightypork.utils.string.validation;
/** /**
* Utility interface for string filters (accepting filepaths and similar) * Utility interface for string filters (accepting filepaths and similar)
* *

@ -1,5 +1,6 @@
package mightypork.utils.time; package mightypork.utils.time;
/** /**
* Class for counting FPS in games.<br> * Class for counting FPS in games.<br>
* This class can be used also as a simple frequency meter - output is in Hz. * This class can be used also as a simple frequency meter - output is in Hz.

@ -1,5 +1,6 @@
package mightypork.utils.time; package mightypork.utils.time;
public interface Pauseable { public interface Pauseable {
/** /**

@ -1,5 +1,6 @@
package mightypork.utils.time; package mightypork.utils.time;
/** /**
* Timer for delta timing * Timer for delta timing
* *

@ -1,5 +1,6 @@
package mightypork.utils.time; package mightypork.utils.time;
/** /**
* Timer for interpolated timing * Timer for interpolated timing
* *

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save