Sha256: a3178ac6bbe921f610600de9e174b7044277ec946147f58021914df5f846e04c

Contents?: true

Size: 476 Bytes

Versions: 37

Compression:

Stored size: 476 Bytes

Contents

package cukes.jbehave.examples.trader.persistence;

import cukes.jbehave.examples.trader.model.Trader;

public class TraderPersister {

    private Trader[] traders;

    public TraderPersister(Trader... traders) {
        this.traders = traders;
    }

    public Trader retrieveTrader(String name) {
        for (Trader trader : traders) {
            if (trader.getName().equals(name)) {
                return trader;
            }
        }
        return null;
    }

}

Version data entries

37 entries across 37 versions & 4 rubygems

Version Path
aslakhellesoy-cucumber-0.1.100.1 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.100.2 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.100.3 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.100.4 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.100.5 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.10 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.11 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.12 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.13 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.14 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.15 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.17 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.18 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.19 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.20 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.21 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.22 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.23 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.5 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java
aslakhellesoy-cucumber-0.1.99.6 examples/jbehave/src/main/java/cukes/jbehave/examples/trader/persistence/TraderPersister.java