first commit

This commit is contained in:
Finn
2026-01-16 21:47:04 +01:00
commit 02d39e2303
40 changed files with 2658 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package org.openautonomousconnection.luascript.events;
import java.util.Locale;
/**
* Normalizes event names.
*/
public final class UiEventRegistry {
private UiEventRegistry() { }
public static String normalize(String eventName) {
if (eventName == null) throw new IllegalArgumentException("eventName is null");
String e = eventName.trim().toLowerCase(Locale.ROOT);
if (e.isEmpty()) throw new IllegalArgumentException("eventName is empty");
return e;
}
}