Ejemplo n.º 1
0
 public override bool Equals(object obj)
 {
     if (this == obj)
     {
         return(true);
     }
     if (obj == null)
     {
         return(false);
     }
     if (GetType() != obj.GetType())
     {
         return(false);
     }
     com.cpkf.yyjd.tools.condition.StartEnd other = (com.cpkf.yyjd.tools.condition.StartEnd)obj;
     if (end != other.end)
     {
         return(false);
     }
     if (start != other.start)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public virtual bool Contains(com.cpkf.yyjd.tools.condition.StartEnd startEnd)
 {
     if (this.Equals(startEnd))
     {
         return(false);
     }
     if (start <= startEnd.start)
     {
         if (end >= startEnd.end)
         {
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 3
0
        public virtual string[] GetStrings(string[] ss, com.cpkf.yyjd.tools.condition.StartEnd[] subStartEnds)
        {
            IList <string> list = new List <string>();

            for (int i = start + 1; i < end; i++)
            {
                com.cpkf.yyjd.tools.condition.StartEnd se = GetStartEnd(subStartEnds, i);
                if (se == null)
                {
                    list.Add(ss[i]);
                }
                else
                {
                    if (!list.Contains(se.ToKey()))
                    {
                        list.Add(se.ToKey());
                    }
                }
            }
            return(Sharpen.Collections.ToArray(list, new string[] {  }));
        }