com.ljs.ootp.extract.html.rating.IntegerScale Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ootp-extract Show documentation
Show all versions of ootp-extract Show documentation
Extraction of player information from OOTP HTML player pages
The newest version!
package com.ljs.ootp.extract.html.rating;
/**
*
* @author lstephen
*/
public abstract class IntegerScale implements Scale {
@Override
public Rating parse(String s) {
return Rating.create(Integer.parseInt(s), this);
}
@Override
public Rating normalize(Integer value) {
return OneToOneHundred.valueOf(scale(value));
}
protected abstract Integer scale(Integer value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy