org.robolectric.shadows.AutoBuilder_ShadowDisplayManager_ModeBuilder Maven / Gradle / Ivy
package org.robolectric.shadows;
import android.view.Display;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoBuilderProcessor")
class AutoBuilder_ShadowDisplayManager_ModeBuilder extends ShadowDisplayManager.ModeBuilder {
private int modeId;
private int width;
private int height;
private float refreshRate;
private byte set$0;
AutoBuilder_ShadowDisplayManager_ModeBuilder() {
}
@Override
ShadowDisplayManager.ModeBuilder setModeId(int modeId) {
this.modeId = modeId;
set$0 |= 1;
return this;
}
@Override
public ShadowDisplayManager.ModeBuilder setWidth(int width) {
this.width = width;
set$0 |= 2;
return this;
}
@Override
public ShadowDisplayManager.ModeBuilder setHeight(int height) {
this.height = height;
set$0 |= 4;
return this;
}
@Override
public ShadowDisplayManager.ModeBuilder setRefreshRate(float refreshRate) {
this.refreshRate = refreshRate;
set$0 |= 8;
return this;
}
@Override
public Display.Mode build() {
if (set$0 != 0xf) {
StringBuilder missing = new StringBuilder();
if ((set$0 & 1) == 0) {
missing.append(" modeId");
}
if ((set$0 & 2) == 0) {
missing.append(" width");
}
if ((set$0 & 4) == 0) {
missing.append(" height");
}
if ((set$0 & 8) == 0) {
missing.append(" refreshRate");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return ShadowDisplayManager.displayModeOf(
this.modeId,
this.width,
this.height,
this.refreshRate);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy