현재 a small argument checking library for Java을 쓰고 있습니다. 수표는이 같은 유창 인터페이스 방식으로 작성됩니다 Check.that(name).matches("hello .*!").hasLenghtBetween(0, 20);
Check.that(list).isNullOr().hasSize(0);
Check.that(
은 내가 문자열 인수의 유효성을 검사하는 코드를 작성했다 얼마나 많은 수없이 모르는 : public RoomName(string name)
{
if (string.IsNullOrEmpty(name))
{
throw new ArgumentException("Cannot be empty", "name");
}
}
이