Skip to content

Instantly share code, notes, and snippets.

View Elyorbe's full-sized avatar
🏓

Elyorbek Ibrokhimov Elyorbe

🏓
View GitHub Profile
@Elyorbe
Elyorbe / EnumType.java
Created July 31, 2025 06:39
Enum type commonization
import java.util.Optional;
public interface EnumType {
String getCode();
String getDescription();
static <E extends Enum<E> & EnumType> Optional<E> fromCode(Class<E> enumType, String code) {
return EnumValueResolver.fromCode(enumType, code);
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Guui → Itaewon Guide</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;