public Periodical setEnd(string end) { Preconditions.checkArgument(!String.IsNullOrEmpty(end), "The time must not be empty."); Preconditions.checkArgument(StringUtil.IsDateTime(end), "The end is not valid."); this.end = end; return this; }