Class SimpleTriple<T1,T2,T3>

java.lang.Object
cn.net.pap.common.excel.dto.SimpleTriple<T1,T2,T3>
Type Parameters:
T1 -
T2 -
T3 -
All Implemented Interfaces:
Serializable

public class SimpleTriple<T1,T2,T3> extends Object implements Serializable
一个简单的三元组表示对象
See Also:
  • Constructor Details

    • SimpleTriple

      public SimpleTriple()
    • SimpleTriple

      public SimpleTriple(T1 s, T2 p, T3 o)
  • Method Details

    • getS

      public T1 getS()
    • setS

      public void setS(T1 s)
    • getP

      public T2 getP()
    • setP

      public void setP(T2 p)
    • getO

      public T3 getO()
    • setO

      public void setO(T3 o)
    • equals

      public boolean equals(Object o1)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toTriple

      public String toTriple()
      转换为三元组格式:

      .

      Returns:
    • convertSpecialCharsToUnicode

      public static String convertSpecialCharsToUnicode(Object input)
      特殊字符转换,比如空格
      Parameters:
      input -
      Returns:
    • write2TripleFile

      public void write2TripleFile(String fileNameAbsolutePath, List<SimpleTriple<T1,T2,T3>> simpleTripleList) throws Exception
      写入文件,按行的三元组信息:

      .

      Parameters:
      fileNameAbsolutePath -
      simpleTripleList -
      Throws:
      Exception