Nested classes without parentheses?

Actually I was ask that why not used the parantheses on ViewSwitcher.ViewFactory or RecyclerView.Adapter. Maybe I understood wrong. I need the paranthese when I do try like the example. Why not used the parantheses in this code?