Example #1
0
 //============================================================
 // <T>查找指定对象集合的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param items 对象集合
 // @return 所在位置
 //============================================================
 public int Find(T[] items)
 {
     return(RArray <T> .Find(_items, 0, _count, items, 0, items.Length));
 }
Example #2
0
 //============================================================
 // <T>查找对象数组的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param items 对象数组
 // @return 所在位置
 //============================================================
 public int Find(IObjects <T> items)
 {
     return(RArray <T> .Find(_items, 0, _count, items.Items, 0, items.Count));
 }
Example #3
0
 //============================================================
 // <T>查找对象数组的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param items 对象数组
 // @return 所在位置
 //============================================================
 public int Find(FCollection items)
 {
     return(RArray <object> .Find(_items, 0, _count, items._items, 0, items._count));
 }
Example #4
0
 //============================================================
 // <T>查找指定对象集合的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param items 对象集合
 // @param offset 开始位置
 // @param count 对象个数
 // @return 所在位置
 //============================================================
 public int Find(T[] items, int offset, int count)
 {
     return(RArray <T> .Find(_items, 0, _count, items, offset, count));
 }
Example #5
0
 //============================================================
 // <T>查找对象数组的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param items 对象数组
 // @return 所在位置
 //============================================================
 public int Find(object[] items)
 {
     return(RArray <object> .Find(_items, 0, _count, items, 0, items.Length));
 }
Example #6
0
 //============================================================
 // <T>查找对象数组的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param items 对象数组
 // @param offset 开始位置
 // @param count 对象个数
 // @return 所在位置
 //============================================================
 public int Find(object[] items, int offset, int count)
 {
     return(RArray <object> .Find(_items, 0, _count, items, offset, count));
 }
Example #7
0
 //============================================================
 // <T>查找类型数组的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param memory 类型数组
 // @return 所在位置
 //============================================================
 public int Find(FTypes <T> memory)
 {
     return(RArray <T> .Find(_memory, 0, _length, memory.Memory, 0, memory.Length));
 }
Example #8
0
 //============================================================
 // <T>查找指定类型集合的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param memory 类型集合
 // @param offset 开始位置
 // @param length 类型个数
 // @return 所在位置
 //============================================================
 public int Find(T[] memory, int offset, int length)
 {
     return(RArray <T> .Find(_memory, 0, _length, memory, offset, length));
 }
Example #9
0
 //============================================================
 // <T>查找指定类型集合的位置。</T>
 // <P>如果不存在则返回-1。</P>
 //
 // @param memory 类型集合
 // @return 所在位置
 //============================================================
 public int Find(T[] memory)
 {
     return(RArray <T> .Find(_memory, 0, _length, memory, 0, memory.Length));
 }