Class WrapperKit

java.lang.Object
com.iohao.net.framework.protocol.wrapper.WrapperKit

public final class WrapperKit extends Object
Utility class for protocol wrapper type resolution.

Maintains a registry of supported primitive/boxed types and their corresponding protocol wrapper classes (IntValue, LongValue, etc.). Provides lookup methods to determine whether a type is a supported wrapper type and to retrieve the associated ValueRecord.

Author:
渔民小镇
date:
2023-06-09
  • Method Details

    • notSupport

      public static boolean notSupport(Class<?> clazz)
      Check whether the given class is not a supported wrapper type.
      Parameters:
      clazz - the class to check
      Returns:
      true if the class is not a supported wrapper type
    • optionalValueRecord

      public static Optional<ValueRecord> optionalValueRecord(Class<?> clazz)
      Look up the ValueRecord for the given class.
      Parameters:
      clazz - the primitive, boxed, or wrapper class to look up
      Returns:
      an Optional containing the ValueRecord, or empty if not found