What do you mean after Java: extends?

look at a piece of code, the definition of a class, where < E extends Enum & BaseEnum > what does this & mean here?

public class EnumTypeHandler<E extends Enum<?> & BaseEnum> extends BaseTypeHandler<BaseEnum>
Apr.03,2021

  

floor 1 positive solution
& it means and in java, but the meaning is basically the same in the generic application scenario.
public class EnumTypeHandler < E extends Enum & BaseEnum > extends BaseTypeHandler < BaseEnum >
E extends Enum & BaseEnum can be understood as E extends (Enum & the meaning of BaseEnum), combining extends, and E is a subclass of Enum and BaseEnum

.
Menu