I think the correct answer would be a diode. A diode is analogous to a one way valve since it only allows electrons to flow in one direction only which is also true for a one-way valve. It is an electronic version of a check valve which is a one way type of valve.