Java back-end server programming; includes various exercises
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
678 B

// Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.chapter2_task3_friendlist.domain;
/*
import javax.validation.constraints.Size;
import javax.validation.constraints.Pattern;
*/
public class Friend {
//@Size(min=2, max=40)
//@Pattern(regexp="^[a-zA-Z]+ [a-zA-Z]+$")
private String fullName;
public void setFullName(String fullName) {
this.fullName = fullName;
}
public String getFullName() {
return fullName;
}
public Friend() {
}
public Friend(String fullName) {
this.fullName = fullName;
}
@Override
public String toString() {
return this.fullName;
}
}