Package com.bddinaction.flyinghigh.model

Examples of com.bddinaction.flyinghigh.model.Status


import com.bddinaction.flyinghigh.model.Status;

public class InMemoryStatusService implements StatusService {
    public Status statusLevelFor(int statusPoints) {
        Status highestMatchingStatus = Status.Bronze;
        for(Status status : Status.values())  {
            if (statusPoints >= status.getMinimumPoints()) {
                highestMatchingStatus = status;
            }
        }
View Full Code Here

TOP

Related Classes of com.bddinaction.flyinghigh.model.Status

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.