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