// Path: src/main/java/com/github/fzakaria/waterflow/swf/SwfConstants.java
// public static final int MAX_NAME_LENGTH = 256;


import com.google.common.base.Preconditions;
import org.immutables.value.Value;
import static com.github.fzakaria.waterflow.swf.SwfConstants.MAX_NAME_LENGTH;
package com.github.fzakaria.waterflow.immutable;



@Value.Immutable
@Wrapped
abstract class _Domain extends Wrapper<String> {

    @Value.Check
    protected void check() {
        Preconditions.checkState(value().length() < MAX_NAME_LENGTH,
// Path: src/main/java/com/github/fzakaria/waterflow/swf/SwfConstants.java
// public static final int MAX_NAME_LENGTH = 256;


// Path: src/main/java/com/github/fzakaria/waterflow/immutable/_Domain.java
import com.google.common.base.Preconditions;
import org.immutables.value.Value;
import static com.github.fzakaria.waterflow.swf.SwfConstants.MAX_NAME_LENGTH;

package com.github.fzakaria.waterflow.immutable;



@Value.Immutable
@Wrapped
abstract class _Domain extends Wrapper<String> {

    @Value.Check
    protected void check() {
        Preconditions.checkState(value().length() < MAX_NAME_LENGTH,
                "'domain' is longer than supported max length");