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

com.cryptomorin.xseries.profiles.builder.ProfileFallback Maven / Gradle / Ivy

There is a newer version: 12.1.0
Show newest version
package com.cryptomorin.xseries.profiles.builder;

import com.cryptomorin.xseries.profiles.exceptions.ProfileChangeException;
import com.cryptomorin.xseries.profiles.objects.ProfileContainer;

/**
 * An object that has all the information about failed attempts.
 * @param  the object that has its profile set. See {@link ProfileContainer} for a list.
 */
public final class ProfileFallback {
    private final ProfileInstruction instruction;
    private T object;
    private final ProfileChangeException error;

    public ProfileFallback(ProfileInstruction instruction, T object, ProfileChangeException error) {
        this.instruction = instruction;
        this.object = object;
        this.error = error;
    }

    public T getObject() {
        return object;
    }

    public ProfileInstruction getInstruction() {
        return instruction;
    }

    public void setObject(T object) {
        this.object = object;
    }

    public ProfileChangeException getError() {
        return error;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy