private Object waveBeanGet ( WaveItem < ? > waveItem ) { for ( final WaveBean wb : waveBeanList ( ) ) { final Object o = Stream . of ( wb . getClass ( ) . getDeclaredFields ( ) ) . filter ( f -> waveItem . name ( ) . equals ( f . getName ( ) ) ) . map ( f -> ClassUtility . getFieldValue ( f , wb ) ) . findFirst ( ) . get ( ) ; if ( o != null ) { return o ; } } return null ; }
Retrieve the field value from wave bean