Complete Example Code for BAEL-782 (#2270)

* added updated example codes

* updated example code StringToCharStream

* deleted StringToCharStream.java locally

* removed redundant file

* added code for apache commons collection SetUtils

* refactored example code

* added example code for bytebuddy
This commit is contained in:
Seun Matt
2017-07-17 23:44:10 +01:00
committed by Zeger Hendrikse
parent 3671427d5e
commit 2ce547d4cd
4 changed files with 123 additions and 0 deletions
@@ -0,0 +1,16 @@
package com.baeldung.bytebuddy;
import net.bytebuddy.implementation.bind.annotation.BindingPriority;
public class Bar {
@BindingPriority(3)
public static String sayHelloBar() { return "Holla in Bar!"; }
@BindingPriority(2)
public static String sayBar() { return "bar"; }
public String bar() { return Bar.class.getSimpleName() + " - Bar"; }
}
@@ -0,0 +1,7 @@
package com.baeldung.bytebuddy;
public class Foo {
public String sayHelloFoo() { return "Hello in Foo!"; }
}