Code example for ObjectInput

Methods: readInt

0
    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 {
        out.writeInt(value);
    } 
    public int getValue(final KnowledgeHelper khelper,
                        final Rule rule,
                        final WorkingMemory workingMemory) {
        return this.value;
    } 
 
    public int getValue() { 
        return value;
    }