类 Tuple

java.lang.Object
cn.sylinx.horm.util.Tuple
直接已知子类:
Pair

public class Tuple extends Object
元组对象
作者:
han
  • 构造器详细资料

    • Tuple

      public Tuple(Object[] items)
      构造器
      参数:
      items - Object对象数组
    • Tuple

      public Tuple()
  • 方法详细资料

    • apply

      public static Tuple apply(Object... args)
      创建Tuple对象
      参数:
      args - Object 对象
      返回:
      the Tuple
    • getItems

      public Object[] getItems()
    • setItems

      public void setItems(Object[] items)
    • get

      public Object get(int index)
      获取对象
      参数:
      index - 索引
      返回:
      Object对象
    • getObject

      public <T> T getObject(int index)
      get the object for the index
      参数:
      index - index
      返回:
      Object
    • getObject

      public <T> T getObject(int index, Class<T> clz)
    • length

      public int length()
      get the length
      返回:
      the length of the tuple