Ejemplo n.º 1
0
 public Data Get(List <Data> Datas, Key key)
 {
     if (Datas.Count != 0)
     {
         int  Index = new Get_Indexof_Datas().Get(Datas, key);
         Data data  = Datas[Index];
         return(data.Copy());
     }
     return(new Data(new NullKey(), new NullValue()));
 }
Ejemplo n.º 2
0
 public bool Reduce(List <Data> Datas, Key key, Value value)
 {
     if (new KeyCheck_Datas().Check(Datas, key))
     {
         int  index       = new Get_Indexof_Datas().Get(Datas, key);
         bool ReduceCheck = Datas[index].Reduce(value);
         new Remove_Datas(Datas, Datas[index].GetValue(), index);
         return(ReduceCheck);
     }
     return(false);
 }
Ejemplo n.º 3
0
    public AddValue_Datas(List <Data> Datas, Data Data)
    {
        int index = new Get_Indexof_Datas().Get(Datas, Data.GetKey());

        Datas[index].Add(Data.GetValue());
    }