コード例 #1
0
ファイル: LongSequence.java プロジェクト: oghenez/mycila
 /**
  * Returns a clone of this list. Since this is a primitive collection, this will be a deep clone.
  *
  * @return a deep clone of the list.
  */
 public Object clone() {
   LongSequence list = null;
   try {
     list = (LongSequence) super.clone();
     list.data = toNativeArray();
   } catch (CloneNotSupportedException e) {
     // it's supported
   } // end get try-catch
   return list;
 }
コード例 #2
0
ファイル: LongSequence.java プロジェクト: oghenez/mycila
 public static LongSequence from(long... array) {
   LongSequence seq = new LongSequence(0);
   seq.data = array;
   seq.pos = array.length;
   return seq;
 }