We often think of Japanese warriors exclusively carrying katanas into battle. During the Sengoku Period (1467-1615) and Edo Period (1603-1867), matchlocks were actually used quite frequently! These matchlocks were known as tanegashima or hinawajū ("matchlock gun") and they were carried by peasant foot soldiers and lower class samurai called ashigaru, who were commanded by members of the samurai class. Guns were looked down upon by the elite samurai, who thought of it as a weapon only for men too weak or unhonorable to carry a sword. Some elite samurai did not see a problem with guns, and they personally owned and gave guns to their soldiers. These matchlocks took heavy inspiration from Dutch and Portuguese gun design, due to them being the only European countries that had trade connections to Japan. These matchlocks usually had a snapping mechanism, long "v" shaped main spring, brass lock and furniture. If you're interested, read "Tanegashima: the arrival of Europe in Japan" by Olof G. Lidin, it's a very good read!