Skip to content

Commit

Permalink
make nested arity interfaces public --Codacy was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
eparejatobes committed Oct 15, 2016
1 parent 5ee3350 commit 34256d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/com/bio4j/angulillos/Arity.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ public enum Arity {
Any; // Usual list: List[X]

/* #### In-arities */
interface FromAtLeastOne extends FromAny, HasFromArity { default Arity fromArity() { return Arity.AtLeastOne; } }
interface FromOne extends FromAtLeastOne, FromAtMostOne, HasFromArity { default Arity fromArity() { return Arity.One; } }
interface FromAtMostOne extends FromAny, HasFromArity { default Arity fromArity() { return Arity.AtMostOne; } }
interface FromAny extends HasFromArity { default Arity fromArity() { return Arity.Any; } }
public interface FromAtLeastOne extends FromAny, HasFromArity { default Arity fromArity() { return Arity.AtLeastOne; } }
public interface FromOne extends FromAtLeastOne, FromAtMostOne, HasFromArity { default Arity fromArity() { return Arity.One; } }
public interface FromAtMostOne extends FromAny, HasFromArity { default Arity fromArity() { return Arity.AtMostOne; } }
public interface FromAny extends HasFromArity { default Arity fromArity() { return Arity.Any; } }

/* #### Out-arities */
interface ToAtLeastOne extends ToAny, HasToArity { default Arity toArity() { return Arity.AtLeastOne; } }
interface ToOne extends ToAtLeastOne, ToAtMostOne, HasToArity { default Arity toArity() { return Arity.One; } }
interface ToAtMostOne extends ToAny, HasToArity { default Arity toArity() { return Arity.AtMostOne; } }
interface ToAny extends HasToArity { default Arity toArity() { return Arity.Any; } }
public interface ToAtLeastOne extends ToAny, HasToArity { default Arity toArity() { return Arity.AtLeastOne; } }
public interface ToOne extends ToAtLeastOne, ToAtMostOne, HasToArity { default Arity toArity() { return Arity.One; } }
public interface ToAtMostOne extends ToAny, HasToArity { default Arity toArity() { return Arity.AtMostOne; } }
public interface ToAny extends HasToArity { default Arity toArity() { return Arity.Any; } }
}

0 comments on commit 34256d3

Please sign in to comment.