Skip to content

Instantly share code, notes, and snippets.

@brilianfird
Created September 19, 2020 03:33
Show Gist options
  • Save brilianfird/db8be8ccde3de71feba921f536fafdab to your computer and use it in GitHub Desktop.
Save brilianfird/db8be8ccde3de71feba921f536fafdab to your computer and use it in GitHub Desktop.
package com.example.functional.programming.model;
public class Person {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Person(String name) {
this.name = name;
}
public static Person createClassExampleFromMethodReference(String name) {
return new Person(name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment