当前位置: 软件>java软件
Java对象分离库 JD
本文导语: JD is a library for taking Java objects apart. 示例代码: Accessor NAME = accessor(Person.class, "name");Person me = new Person("Dominic");assertThat(NAME.get(me), is("Dominic"));Property myName = property(NAME).of(me);assertThat(myName.get(), is("Dominic");Assigner nameOfArthur = NAME.of("Ar...
JD is a library for taking Java objects apart.
示例代码:
Accessor NAME = accessor(Person.class, "name");
Person me = new Person("Dominic");
assertThat(NAME.get(me), is("Dominic"));
Property myName = property(NAME).of(me);
assertThat(myName.get(), is("Dominic");
Assigner nameOfArthur = NAME.of("Arthur");
nameOfArthur.assignTo(me);
assertThat(myName.get(), is("Arthur");