Code example for ObjectInput

Methods: readInt

    public SalienceInteger(int value) {
        this.value = value;
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        value   = in.readInt();
    public void writeExternal(ObjectOutput out) throws IOException {
    public int getValue(final KnowledgeHelper khelper,
                        final Rule rule,
                        final WorkingMemory workingMemory) {
        return this.value;
    public int getValue() { 
        return value;
Connect your IDE to all the code out there  Get Codota for Java