Ejemplo n.º 1
0
            public override Builder set(string propertyName, object newValue)
            {
                switch (propertyName.GetHashCode())
                {
                case 3575610:         // type
                    this.type = (CurveNodeDateType)newValue;
                    break;

                case 3076014:         // date
                    this.date = (LocalDate)newValue;
                    break;

                default:
                    throw new NoSuchElementException("Unknown property: " + propertyName);
                }
                return(this);
            }
Ejemplo n.º 2
0
 private CurveNodeDate(CurveNodeDateType type, LocalDate date)
 {
     this.type = type;
     this.date = date;
     validate();
 }