Files
lombok/test/transform/resource/after-ecj/WitherAccessLevel.java
T

43 lines
2.6 KiB
Java

import lombok.AccessLevel;
class WitherAccessLevel {
@lombok.With(lombok.AccessLevel.NONE) boolean isNone;
@lombok.With(AccessLevel.PRIVATE) boolean isPrivate;
@lombok.With(lombok.AccessLevel.PACKAGE) boolean isPackage;
@lombok.With(AccessLevel.PROTECTED) boolean isProtected;
@lombok.With(lombok.AccessLevel.PUBLIC) boolean isPublic;
@lombok.With(value = lombok.AccessLevel.PUBLIC) boolean value;
WitherAccessLevel(boolean isNone, boolean isPrivate, boolean isPackage, boolean isProtected, boolean isPublic, boolean value) {
super();
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
private @java.lang.SuppressWarnings("all") @lombok.Generated WitherAccessLevel withPrivate(final boolean isPrivate) {
return ((this.isPrivate == isPrivate) ? this : new WitherAccessLevel(this.isNone, isPrivate, this.isPackage, this.isProtected, this.isPublic, this.value));
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all") @lombok.Generated WitherAccessLevel withPackage(final boolean isPackage) {
return ((this.isPackage == isPackage) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, isPackage, this.isProtected, this.isPublic, this.value));
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
protected @java.lang.SuppressWarnings("all") @lombok.Generated WitherAccessLevel withProtected(final boolean isProtected) {
return ((this.isProtected == isProtected) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, isProtected, this.isPublic, this.value));
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
public @java.lang.SuppressWarnings("all") @lombok.Generated WitherAccessLevel withPublic(final boolean isPublic) {
return ((this.isPublic == isPublic) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, isPublic, this.value));
}
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
public @java.lang.SuppressWarnings("all") @lombok.Generated WitherAccessLevel withValue(final boolean value) {
return ((this.value == value) ? this : new WitherAccessLevel(this.isNone, this.isPrivate, this.isPackage, this.isProtected, this.isPublic, value));
}
}