[Indicators] changed the serialization of the bip indicators
This commit is contained in:
parent
43f16ece50
commit
9e539d38f7
|
@ -192,19 +192,13 @@ public class Utils {
|
|||
break;
|
||||
case BIP_INFLUENCE_ALT:
|
||||
m.getUnit().forEach(u -> {
|
||||
if (u.getKey().equals("class"))
|
||||
getImpactMeasure(i).setInfluenceAltClass(u.getValue());
|
||||
if (u.getKey().equals("score"))
|
||||
getImpactMeasure(i).setInfluenceAlt(Double.parseDouble(u.getValue()));
|
||||
if (u.getKey().equals("class"))
|
||||
getImpactMeasure(i).setCitationClass(u.getValue());
|
||||
if (u.getKey().equals("score"))
|
||||
getImpactMeasure(i).setCitationCount(Integer.parseInt(u.getValue()));
|
||||
});
|
||||
break;
|
||||
case BIP_POPULARITY_ALT:
|
||||
m.getUnit().forEach(u -> {
|
||||
if (u.getKey().equals("class"))
|
||||
getImpactMeasure(i).setPopularityAltClass(u.getValue());
|
||||
if (u.getKey().equals("score"))
|
||||
getImpactMeasure(i).setPopularityAlt(Double.parseDouble(u.getValue()));
|
||||
});
|
||||
break;
|
||||
case BIP_IMPULSE:
|
||||
m.getUnit().forEach(u -> {
|
||||
|
|
Loading…
Reference in New Issue