All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.squirrelframework.foundation.fsm.StringConverter Maven / Gradle / Ivy

Go to download

foundation module of squirrel framework which provided event driven infrastructure and a finite state machine implementation.

There is a newer version: 0.3.10
Show newest version
package org.squirrelframework.foundation.fsm;

import org.squirrelframework.foundation.component.SquirrelProvider;

public interface StringConverter extends Converter {
    
    public static final Converter INSTANCE = SquirrelProvider.getInstance().newInstance(StringConverterImpl.class);
    
    class StringConverterImpl implements StringConverter {
        
        private StringConverterImpl() {}

        @Override
        public String convertToString(String obj) {
            return obj;
        }

        @Override
        public String convertFromString(String name) {
            return name;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy