rea
Reverse engineer anything with agents, from app behavior down to native binaries.
- 475k
- TypeScript
- MIT
- 42 min ago
A low-level java library to parse, iterate or wrap any object type
Repo saicone/types, read from GitHub 1 min ago. saicone has not joined Take My Repo.
saicone/types is a public repo on GitHub by saicone. A low-level java library to parse, iterate or wrap any object type. It declares the MIT license on GitHub. It is written mainly in Java, has 1 stars and last changed on 2026-11-04. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-23.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Types library can convert any object type into a required one, iterate any object, do structure transformations and wrap generic types.
Convert!
// from String str = "1234"; String str = "0b11010"; String str = "0x46"; // to int number = Types.INTEGER.parse(str); // from double[] array = new double[] { 10.3, 8.4, 5.0 }; // to List<Float> list = AnyObject.of(array).asList(Types.FLOAT); // from List<String> strList = List.of( "1234", "true", "55", "false", "10", "true" ); // to Map<Integer, Boolean> intBooleanMap = new TypeOf<Map<Integer, Boolean>>(){}.parse(from);
Iterate!
// single object int number = 1234; for (int element : AnyIterable.<Integer>ofAny(number)) { // do something } // array double[] array = new double[] { 10.3, 8.4, 5.0 }; for (double element : AnyIterable.of(array)) { // do something } // list List<Float> list = List.of(10.3, 8.4, 5.0); for (Float element : AnyIterable.of(list)) { // do something } // map Map<Integer, Boolean> to = Map.of( 1234, true, 55, false, 10, true ); for (Map.Entry<Integer, Boolean> entry : AnyIterable.of(to)) { // do something }
Wrap!
// Original String list List<String> stringList = List.of("1", "2", "3", "4"); // A view of original list as Integer list List<Integer> integerList = new WrappedList<>(stringList, TypeWrapper.of(Types.STRING, Types.INTEGER)); // So this if (integerList.contains(3)) { // ... } // Is the equivalent of if (stringList.contains("3")) { // ... }
How to implement Types library in your project.
This library contains the following artifacts:
types-api - The main project, a type parsing and iteration API.types-annotated - Annotated type parsing API.types-mapper - (experimental) Type mapping and transformation API.types-wrapper - Type wrapping API.build.gradle
repositories {
mavenCentral()
}
dependencies {
implementation 'com.saicone:types-api:1.5.0'
}build.gradle.kts
repositories {
mavenCentral()
}
dependencies {
implementation("com.saicone:types-api:1.5.0")
}pom.xml
<dependencies> <dependency> <groupId>com.saicone</groupId> <artifactId>types-api</artifactId> <version>1.5.0</version> <scope>compile</scope> </dependency> </dependencies>
A "supported" type (for example) doesn't mean you can magically convert a Map<String, Integer> into Boolean,
every object type that you want to parse must have a minimum sense with the conversion or an exception will be thrown,
for example a "1.4" can be converted into any Number type.
Note
Any supported (primitive) object type can be returned as array value of its type.
Well known Java objects and the accepted types to properly parse them.
java.lang.Objectjava.lang.Stringjava.lang.Character
65 or 0x41Stringjava.lang.Boolean
true / false or yes / no string0 or 10 or between 0 and 1java.lang.Numberjava.lang.Bytejava.lang.Shortjava.lang.integerjava.lang.Floatjava.lang.Longjava.lang.Doublejava.lang.Class<?>
some.package.for.MyClasssome/package/for/MyClass.class or C:\some\package\for\MyClass.javaLsome/package/for/MyClass;int[][]java.math.BigIntegerjava.math.BigDecimaljava.util.UUID
String (with dashes) 00000000-0000-0000-0000-000000000000String (without dashes) 00000000000000000000000000000000[000000000, 000000000, 000000000, 000000000][mostSigBits, leastSigBits]java.util.regex.Pattern
StringString with a type annotated with PatternFlagsjava.util.BitSetjava.net.URI
StringURLFilePathjava.net.URL
StringURIFilePathjava.io.File
String separated by /String[]Pathjava.nio.file.Path
String separated by /String[]Filejava.time.Duration
String formated like 15 MINUTES AND 30 SECONDSString[] formated like ["15 MINUTES", "30 SECONDS"]java.time.LocalDate
Long[year, dayOfYear][year, month, day]Stringjava.time.LocalTime
Long[hour, minute][hour, minute, second][hour, minute, second, nanoOfSecond]String formatted as hour:minute:second.nanoOfSecond, examples: "10:30", "10:40:05", "09:08:21.35"java.time.LocalDateTime
Long[year, month, day, hour, minute][year, month, day, hour, minute, second][year, month, day, hour, minute, second, nanoOfSecond]String separated by T with time formatted as hour:minute:second.nanoOfSecondjava.awt.Color
#RRGGBB or #RRGGBBAARGB, RGBA or rgba(R, G, B, A) with values between 0 and 255oklch(L, C, H){"red": R, "green": G, "blue": B, "alpha": A}Note
Any Number type can be parsed from:
true = 1 | false = 0350[bB][0-1], for example 0b110100[xX][0-9A-Fa-f], for example 0x46#[0-9A-Fa-f], for example #460[oO]?[0-7], for example 075 or 0o75And also detect:
+ -u or Ub B s S i I f F l L d DTypical Java objects with parameters.
java.lang.Enum<?>
String (case-insensitive)NumberEnum by extracting ordinal value.java.util.Collection<E> - Can be any Java object that implements Collectionjava.util.Map<K, V> - Can be any Java object that implements Map
MapIterable object which its elements will be converted into keys and values.(The type parameters E, K and V can be any supported type)
Functional Java objects to handle any type parser in a flexible way.
java.util.Optional<E> - Contains parsed value, empty optional type is return when parse failsjava.util.concurrent.CompletableFuture<E> - Maintain parse function into exceptionally future object(The type parameter E can be any supported type)
How to use Types library.
By default, Types library can convert objects into 6 data definitions:
Collection interface.Object[] array.Enum type.Map interface.Using 4 different methods:
Single objects:
String str = "1234"; // Using TypeParser TypeParser<Double> parser = (object) -> Double.parseDouble(String.valueOf(object)); double number = parser.parse(str); // Using Types int number = Types.INTEGER.parse(str); // Using AnyObject float number = AnyObject.of(str).asFloat(); // Using TypeOf TypeOf<Long> type = new TypeOf<Long>(){}; long number = type.parse(str);
Collections:
int number = 1234; // Using TypeParser TypeParser<List<Integer>> parser = ListParser.of(Types.INTEGER); List<Integer> list = parser.parse(number); // Using Types List<Double> list = Types.DOUBLE.list().parse(number); // Using AnyObject List<Float> list = AnyObject.of(number).asList(Types.FLOAT); // Using TypeOf TypeOf<List<Long>> type = new TypeOf<List<Long>>(){}; List<Long> list = type.parse(number);
Object Arrays:
String str = "1234"; // Using TypeParser TypeParser<String[]> parser = ArrayParser.of(String.class); String[] array = parser.parse(str); // Using Types Integer[] array = Types.INTEGER.array().parse(str); // Using AnyObject String[] array = AnyObject.of(str).asArray(Types.STRING); // Using TypeOf TypeOf<Integer[]> type = new TypeOf<Integer[]>(){}; Integer[] array = type.parse(str);
Primitive Arrays:
String str = "1234"; // Using TypeParser TypeParser<int[]> parser = ArrayParser.of(int.class); int[] array = parser.parse(str); // Using Types float[] array = Types.of(float.class).array().parse(str); // Using AnyObject double[] array = AnyObject.of(str).asArray(Types.of(double.class)); // Using TypeOf TypeOf<long[]> type = new TypeOf<long[]>(){}; long[] array = type.parse(str);
Enums:
String str = "VALUE_NAME"; // Using TypeParser TypeParser<MyEnum> parser = EnumParser.of(MyEnum.class); MyEnum value = parser.parse(str); // Using AnyObject MyEnum value = AnyObject.of(str).asEnum(MyEnum.class); // Using TypeOf TypeOf<MyEnum> type = new TypeOf<MyEnum>(){}; MyEnum value = type.parse(str);
Maps:
Map<String, String> map = new HashMap<>(); map.put("1234", "true"); map.put("55", "false"); map.put("12", "true"); // Using TypeParser TypeParser<Map<Integer, Boolean>> parser = MapParser.of(Types.INTEGER, Types.BOOLEAN); Map<Integer, Boolean> value = parser.parse(map); // Using AnyObject Map<Integer, Boolean> value = AnyObject.of(map).asMap(Types.INTEGER, Types.BOOLEAN, new HashMap<>()); // Using TypeOf TypeOf<Map<Integer, Boolean>> type = new TypeOf<Map<Integer, Boolean>>(){}; Map<Integer, Boolean> value = type.parse(map);
Tip
If you create a TypeParser or use TypeOf is suggested to save as static final field to reduce memory footprint.
How to iterate any object value.
// Single object String value = "text"; for (String str : AnyIterable.<String>ofAny(value)) { // do something } // Array / Collection Integer[] value = new Integer[] { 1, 2, 3, 4 }; int[] value = new int[] { 1, 2, 3, 4 }; List<Integer> value = new ArrayList<>(); for (int i : AnyIterable.of(value)) { // do something } // Map Map<String, Integer> value = new HashMap<>(); for (Map.Entry<String, Integer> entry : AnyIterable.of(value)) { // do something }
Type wrapping is a lazy object conversion that work in different dimensions using two types.
Type A: Is the base type of object, you can get it by unwrap the type B.
Type B: Is the type of object that wrap type A, in other words, to show A as B.
1. One dimension wrapper:
A one dimension TypeWrapper can be created using one type parser to wrap or unwrap any representation of a type.
TypeParser<Integer> parser = Types.INTEGER; // Wrapper that only wrap objects TypeWrapper<Integer, Integer> onlyWrap = TypeWrapper.wrap(parser); // Wrapper that only unwrap objects TypeWrapper<Integer, Integer> onlyUnwrap = TypeWrapper.unwrap(parser); // Example List<Integer> list = new ArrayList<>(List.of(1, 2, 3, 4)); // By only wrapping values you got a list that pass values to type wrapper for outgoing operations // Which is useless in this case since the wrapper doesn't make a value transformation List<Integer> integerList = new WrappedList<>(list, onlyWrap); // This value was processed on wrapper, int this case any change was applied int i = integerList.get(0); // By only unwrapping values you got a list that accept any kind of object that can be converted to Integer on incoming operations // Which is useful to take advantage of type parsing List<Integer> integerList = new WrappedList<>(list, onlyUnwrap); // In this case, the following operation is valid since any String is converted to Integer if (integerList.contains("2")) { integerList.remove("1"); }
2. Two dimension wrapper with cast:
A two dimension TypeWrapper can be created using one type parser to wrap type A or unwrap type B and expect that the other type must be obtained using a regular cast.
TypeParser<Long> parserA = Types.LONG; TypeParser<Integer> parserB = Types.INTEGER; // Wrapper that only wrap type A to show it as B // Meaning that you only need to provide a type parser to convert A to B TypeWrapper<Long, Integer> onlyWrap = TypeWrapper.wrap(parserB); // Wrapper that only unwrap type B to return it as A // Meaning that you only need to provide a type parser to convert B to A TypeWrapper<Long, Integer> onlyUnwrap = TypeWrapper.unwrap(parserA); // Example List<Long> longList = new ArrayList<>(List.of(1L, 2L, 3L, 4L)); // By only wrapping values you got a list that show values as Integer for outgoing operations // And try to cast incoming values as Long for outgoing operations List<Integer> integerList = new WrappedList<>(longList, onlyWrap); // This value was converted from Long int i = integerList.get(0); // By only unwrapping values you got a list that try to cast outgoing values as Integer for incoming operations // And accepts Long-representation values for incoming operations (for example, an Integer) List<Integer> integerList = new WrappedList<>(longList, onlyUnwrap); // In this case the list accept any Long representation as well if (integerList.contains(2L)) { integerList.remove("1L"); }
3. Two dimension wrapper:
A two dimension TypeWrapper can be created using one type parser to wrap type A and other type parser to unwrap type B.
TypeParser<Integer> parserA = Types.INTEGER; TypeParser<String> parserB = Types.STRING; // A wrapper that make Integers look like Strings by wrapping any String representation // And make String look like Integers by unwrapping any Integer representation TypeWrapper<Integer, String> wrapper = TypeWrapper.of(parserA, parserB); // Example List<Integer> integerList = new ArrayList<>(List.of(1, 2, 3, 4)); // By providing the wrapper, the Integer list will act as a String list List<String> stringList = new WrappedList<>(integerList, wrapper); if (integerList.contains("2")) { integerList.remove("1"); }
How to register your own types.
// Register TypeParser<MyObject> parser = (object) -> { // Convert into MyObject... }; Types.put(MyObject.class, parser); // Unregister Types.remove(MyObject.class); // Get TypeParser<MyObject> parser = Types.of(MyObject.class);
saicone/types is a public repo on GitHub by saicone. A low-level java library to parse, iterate or wrap any object type.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-11-04. GitHub counts 0 open issues and pull requests. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Reverse engineer anything with agents, from app behavior down to native binaries.

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于Spring Boot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
A Bukkit library to read/edit/write NBT objects as if they were known objects
Bungeecord and Velocity plugin that reduces duplicated resource pack requests
Runtime library/dependency loader & relocator for Java in a single class
Multiplatform Named Binary Tag library with customizable abstraction