Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Consider you want to map a CharSequence to another CharSequence (thus T = R = CharSequence). Which functions will work for you? Function<Object, String> fn1 = Object::toString; Is it good for you? Yes, because it can take any CharSequence (which is also Object) and convert it to the String (which is also CharSequence). Function<CharSequence, StringBuilder> fn2 = StringBuilder::new; Is it good for you?
Consider you want to map a CharSequence to another CharSequence (thus T = R = CharSequence). Which functions will work for you? Function<Object, String> fn1 = Object::toString; Is it good for you? Yes, because it can take any CharSequence (which is also Object) and convert it to the String (which is also CharSequence). Function<CharSequence, StringBuilder> fn2 = StringBuilder::new; Is it good for you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.