Examples of ThreeWayIntegerComparisonResult


Examples of com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.comparators.integercomparator.ThreeWayIntegerComparisonResult

import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.comparators.integercomparator.ThreeWayIntegerComparisonResult;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.comparators.integercomparator.ThreeWayIntegerComparator;

public class LoopCondition {
  public boolean evaluateLoop(int nCurrentNumber, int nTotalCount) {
    final ThreeWayIntegerComparisonResult comparisonResult = ThreeWayIntegerComparator.Compare(nCurrentNumber, nTotalCount);
    if (comparisonResult == ThreeWayIntegerComparisonResult.FirstIsLessThanSecond) {
      return true;
    } else if (comparisonResult == ThreeWayIntegerComparisonResult.FirstEqualsSecond) {
      return true;
    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.