Пример #1
0
        public bool Compare(Batch compare)
        {
            if (compare == null)
            {
                return(false);
            }
            if ((this.getBatch() == compare.getBatch()) && (this.getColor() == compare.getColor()) && (this.getRepeat() == compare.getRepeat()))
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }
Пример #2
0
 public void setBatch(Batch b)
 {
     batch.setBatch(b.getBatch());
     batch.setColor(b.getColor());
     batch.setRepeat(b.getRepeat());
 }