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

com.undefinedlabs.scope.deps.okio.Options Maven / Gradle / Ivy

Go to download

Scope is a APM for tests to give engineering teams unprecedented visibility into their CI process to quickly identify, troubleshoot and fix failed builds. This artifact contains dependencies for Scope.

There is a newer version: 0.14.0-beta.2
Show newest version
package com.undefinedlabs.scope.deps.okio;

import java.util.AbstractList;
import java.util.RandomAccess;

public final class Options extends AbstractList implements RandomAccess {
    final ByteString[] byteStrings;

    private Options(ByteString[] byteStrings) {
        this.byteStrings = byteStrings;
    }

    public static Options of(ByteString... byteStrings) {
        return new Options(byteStrings.clone()); // Defensive copy.
    }

    @Override public ByteString get(int i) {
        return byteStrings[i];
    }

    @Override public int size() {
        return byteStrings.length;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy