java - Why do getNewValue() and getOldValue() are deprecated in ListEvent class in Glazed Lists? -


i observe list changes in eventlist listevent in glazed lists.

surprisingly, methods getnewvalue() also getoldvalue() deprecated without no compos explanation.

why?

how know, elements added or removed then?

it's not ideal because deprecation reserved old code/approaches being retired. in instance have better annotate "experimental" because developer trying "be careful, new , may change. don't rely on yet."

see description in docs (i've emphasised key line):

in future, listevent provide more information list changes more self-contained:

for deletes, provide deleted element getoldvalue() inserts, provide inserted element getnewvalue() updates, provide old , new element getoldvalue() , getnewvalue() the methods marked deprecated , should not used yet, because implementation work in progress.

i don't think javadoc has annotation experimental code, developer has chosen use deprecation warn users of library.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -